DockerCommand
Run a Container
Type this command
docker runCreates a container from an image and starts it. Add -d to run it in the background.
Tip: docker run -it ubuntu bash opens an interactive shell in a new container.
The Docker command to run a container is docker run.
docker rundocker runCreates a container from an image and starts it. Add -d to run it in the background.
Tip: docker run -it ubuntu bash opens an interactive shell in a new container.
Tip: docker run -it ubuntu bash opens an interactive shell in a new container.
Run docker run.
Run docker run.
Type it in the terminal or command-line interface used by Docker.
Yes. The command text is the same on both platforms when the tool is installed.