0 votes
in Docker by

Which command is used to create a new Docker image?

a) docker build

b) docker pull

c) docker run

d) docker commit

1 Answer

0 votes
by
a) docker build

Explanation:

The docker build command is used to build a new image from a Dockerfile and a "context". The context is the set of files in a specified directory or URLs that the image is built from.
...