Once we have the images, we can use them to start containers. In this recipe, we will start a container with the ubuntu:latest image and see what happens behind the scenes.
Starting a container
Getting ready
Ensure that the Docker daemon is running on the host and can be connected through the Docker client.
How to do it...
We can start a container using either of the following syntaxes:
docker run [OPTIONS] IMAGE [COMMAND] [ARG...] docker container run [OPTIONS] IMAGE [COMMAND] [ARG...]
The docker container run command is recommended over docker run because, in...