start docker container code example
Example 1: Start the Docker daemon
sudo systemctl start docker
sudo service docker start
Example 2: how to start docker
systemctl start docker.service
#(OR)
systemctl start docker
# it will start docker
Example 3: docker start container
$ docker start my_container
Example 4: docker start container
docker start -a <container_id>
Example 5: start a docker container
$ docker start <container_id>
Example 6: 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