From the course: Docker: Your First Project
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Running a container - Docker Tutorial
From the course: Docker: Your First Project
Running a container
- [Instructor] Now that we've created our image for Big Star Collectibles, we can run a container based on the image. If you removed your image in the last chapter, you will need to build it again before moving on. There are two commands to run a container, docker start and docker run. The docker start command is used to start any stopped container. If you try to use docker start before you have created your container, it will error out because that container doesn't exist. The docker run command creates a new container and then starts it immediately. The image tag argument specifies the image to use for the container. The tag is optional and specifies the specific version of the tag to use. If no tag is specified, then the latest version of the image will be used. The command argument specifies the command to run when the container is started, such as executing a startup script. This is optional and can be omitted…