DockerCommands
DockerCommands
==========================================
1 Create an aws ubuntu instance
2 Connect to it using git bash
3 Open http://get.docker.com
4 Copy and paste the first two commands
sh get-docker.sh
Docker host is the machine where docker is installed.It can be windows,Linux or Mac
Docker Client
----------------
This is an application which is responsible for accepting the docker commands
and pass them to the docker deamon.On the windows machine power shell will act as
docker client on Linux and Mac the terminal will work like docker client
Docker Deamon
-----------------
This is a back ground process which accepts the commands from docker and
send them either to the docker images or docker containers or docker registry
Docker Registry
------------------
This is a location where docker images can be stored.This is of two types
1 Public Registry
2 Private Registry
Private Registry is created within the servers of our originization and it can
be accessed on by our orginization team members
12 To restart a container
docker restart container_name/container_id
To restart after 10 seconds
docker restart -t 10 container_name/container_id
28 To create a network
docker network create --driver network_type network_name
31 To delete a network
docker network rm network_id/network_name
35 To delete a volume
docker volume rm volume_name/volume_id