March 2017
Beginner to intermediate
925 pages
18h 11m
English
Once we have images, we can use them to start the containers. In this recipe, we will start a container with the fedora:latest image and see what all things happen behind the scene.
Make sure the Docker daemon is running on the host and you can connect through the Docker client.
docker run [ OPTIONS ] IMAGE[:TAG] [COMMAND] [ARG...]
Here is an example of a command:
$ docker run -i -t --name=f21 fedora /bin/bash
By default, Docker picks the image with the latest tag:
-i option starts the container in the interactive mode-t option allocates a pseudo-tty and attaches it to the standard inputSo, with the preceding command, we start a container from ...
Read now
Unlock full access