Last active
July 6, 2017 14:12
-
-
Save Kyborg2011/60bacb94dbd5b69567c37702adab424e to your computer and use it in GitHub Desktop.
Docker + GitLab - useful 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
# recursively find the amount stored in directories (with depth 1) | |
sudo du -h / -d 1 | |
# clearing of every unused Docker containers | |
# ( finded from: http://stackoverflow.com/questions/32723111/how-to-remove-old-and-unused-docker-images ) | |
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null | |
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null | |
# making backup of Docker (docker-ce deploying as Docker container) | |
docker exec -i gitlab-container-name /opt/gitlab/bin/gitlab-rake gitlab:backup:create |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment