188k views
0 votes
Intro to Docker How can a new container be created? Pick ONE option

-) New container are created on their own without using an existing image
-) New containers are created from existing images

User Greg Guida
by
9.8k points

1 Answer

0 votes

Final answer:

New containers in Docker are created by running an existing image, either pulled from a registry or built from a Dockerfile.

Step-by-step explanation:

To create a new container in Docker, you must use an existing image. Containers are instances of Docker images that can be run using the Docker engine. The process typically involves pulling a pre-made image from a registry, such as Docker Hub, or building a new one from a Dockerfile, and then running the image. When you run the image, a new container is created from it, and you can then use the container to run applications, processes, or services.

User Shayan Ghosh
by
8.9k points