Skip to content
Discussion options

You must be logged in to vote
  1. Install Docker and start the Docker service.

  2. Verify installation using docker --version.

  3. Pull the required image using docker pull <image_name>.

  4. Check downloaded images with docker images.

  5. Run the image using docker run <image_name>.

  6. Use -d flag to run container in background.

  7. Assign a name using --name my_container.

  8. Map ports using -p host_port:container_port.

  9. Check running containers using docker ps.

  10. Stop and remove using docker stop and docker rm.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by exehyper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development source:ui Discussions created via Community GitHub templates
2 participants