Skip to content

Instantly share code, notes, and snippets.

@windsting
Created October 28, 2017 09:10
Show Gist options
  • Save windsting/d9932dae8e4b813ae637fd2b4eef9ec0 to your computer and use it in GitHub Desktop.
Save windsting/d9932dae8e4b813ae637fd2b4eef9ec0 to your computer and use it in GitHub Desktop.
Docker commands

Useful docker commands

Remove dangling docker images

docker image prune

Remove old Docker containers

docker container prune

Run gitlab server

docker run --detach --hostname gitlab.quying.com --publish 20443:443 --publish 20080:80 --publish 20022:22 --name gitlab --restart always --volume /srv/gitlab/config:/etc/gitlab --volume /srv/gitlab/logs:/var/log/gitlab --volume /srv/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment