Last active
February 5, 2019 14:34
-
-
Save gotraveltoworld/b62686a06ecad1758802f9ccc77f367d to your computer and use it in GitHub Desktop.
To record some of the docker's 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
# Docker run. | |
docker run -v $(pwd)/app/libs:/var/task/libs --rm -d -t <name space>/<container's name>:<tag's name, default:latest> | |
# 執行特定docker's container by name. | |
docker exec -it $(docker ps -f name=fb_related_pages -q) sh -c "<command something...>" | |
# 過濾取得特定docker container inspect | |
docker inspect $(docker ps -f name=<your container's name> -q) | |
# 刪除volumes | |
docker volume rm $(docker volume list -q) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment