Last active
August 3, 2020 21:21
-
-
Save okanmenevseoglu/7ef4ff4e6cd855178cbbe7223026209a to your computer and use it in GitHub Desktop.
Docker Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pull and image from a repository. | |
docker pull <repository-image-url>:<tag> | |
// Run an image with a bash shell. | |
docker run -it <image-name or image url>:<tag> /bin/bash | |
// Mount a volume to an image and run it | |
docker run -v <host-volume>:<docker-volume> <image-name or image url>:<tag> | |
// Connect to a running container | |
docker exec -it <image> /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment