G
Q. Which of the following is the correct way to expose a Docker container’s port to the host?
'docker run -p 8080:80 container_name' is the correct command to expose a port from the container to the host.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the purpose of the 'docker system prune' command?
Q. What is the default network driver in Docker?
Q. What is the purpose of 'depends_on' in a Docker Compose file?
Q. Which command is used to build a Docker image from a Dockerfile?
Q. How can you check the health status of a running container?
Q. Which command is used to start services defined in a Docker Compose file?
Q. What command would you use to remove a Docker image?
Q. What is the difference between 'docker stop' and 'docker kill'?
Discusssion
Login to discuss.