starting docker code example

Example 1: how to start docker

systemctl start docker.service
#(OR)
systemctl start docker
# it will start docker

Example 2: docker start container

$ docker start my_container

Example 3: docker getting-started

#make sure docker is installed 
docker run -dp 80:80 docker/getting-started

Example 4: start another docker machine

# start another docker machine

# create a new docker machine
docker-machine create -d virtualbox --virtualbox-memory 2048 --virtualbox-disk-size 204800 my_new_machine

# replace my_new_machine
docker-machine start my_new_container
eval $($DOCKER_MACHINE env my_new_container --shell=bash)
docker-machine ssh my_new_container