Skip to content

Instantly share code, notes, and snippets.

@Kyborg2011
Last active July 6, 2017 14:12
Show Gist options
  • Save Kyborg2011/60bacb94dbd5b69567c37702adab424e to your computer and use it in GitHub Desktop.
Save Kyborg2011/60bacb94dbd5b69567c37702adab424e to your computer and use it in GitHub Desktop.
Docker + GitLab - useful commands
# 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