sudo groupadd docker sudo gpasswd -a $USER docker newgrp

docker ps

docker exec -i -t 665b4a1e17b6 /bin/bas

--rm switch automatically destroy after ended

docker run --hostname gitlab.example.com --publish 443:443 --publish 80:80 --publish 22:22 --name gitlab --volume /home/ghost/Desktop/gitlab/docker/gitlab/config:/etc/gitlab:Z --volume /home/ghost/Desktop/gitlab/docker/gitlab/logs:/var/log/gitlab:Z --volume /home/ghost/Desktop/gitlab/docker/gitlab/data:/var/opt/gitlab:Z gitlab/gitlab-ce

docker run --name gitlab-runner -v /home/ghost/Desktop/gitlab-runner/config:/etc/gitlab-runner -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest



Comments

comments powered by Disqus