A Linux administrator wants to create a Docker image from a Dockerfile. Which TWO of the following commands are needed? (Select TWO).
Builds the image from the Dockerfile.
Why this answer
To create a Docker image from a Dockerfile, only the docker build command is needed. The other options are not used in this process: docker run starts a container, docker push uploads to a registry, docker tag renames an image, and docker commit creates an image from a container. Although the question asks for two commands, only docker build is directly required; no second command is necessary to create the image from the Dockerfile.