You're given a Dockerfile and need to create a Docker container from it. Which command would you use?

  • docker compose
  • docker build
  • docker create
  • docker run
To create a Docker container from a Dockerfile, you would use the "docker build" command. This command reads the instructions in the Dockerfile and generates a Docker image, which can then be used to create and run containers.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *