CompTIA Linux+ XK0-005 Practice Question
Which command would you use to create a new container from an existing image and start it immediately?
docker create
docker commit
docker build
docker run
Which command would you use to create a new container from an existing image and start it immediately?
docker create
docker commit
docker build
docker run
The command docker run
is used to create a new container instance from a specified image and start the container immediately. If the image is not available locally, it will be pulled from the container registry. docker create
only creates the container without starting it, which requires a separate docker start
command to run the container. docker build
is used to create an image from a Dockerfile, not to start a container. docker commit
creates a new image from a container's changes.
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Join premium for unlimited access and more features
All plans include the following perks.
Our pricing is simple. Full access to all certifications and exams, for one price.
As many practice tests for as many topics as you want.
Use study mode non-stop, no limits.
No annoying ads and popups. Study without distractions.
Track your scores over time in study mode and report cards.
See how you improve over time, and where you need to focus.
Access our store with even more discounts than before.
Unlimited access to all PBQs and be prepared for the real thing.
Create an account or sign in to access our study materials.