Install Gitlab di Docker

Posted on

Tips singkat install docker di localhost,

docker search gitlab

docker pull docker.io/gitlab/gitlab-ce

docker images

docker run -d –hostname 127.0.0.1 \

-p 443:443 -p 80:80 -p 2222:22 \

–name gitlab-ilham \

–restart unless-stopped \

–volume /Users/ilhamvannyputra/Development/Docker/config:/etc/gitlab \

–volume /Users/ilhamvannyputra/Development/Docker/logs:/var/log/gitlab \

–volume //Users/ilhamvannyputra/Development/Docker/data:/var/opt/gitlab \

gitlab/gitlab-ce:latest

docker container start gitlab-ilham

kemudian buka localhost untuk coba akses gitlabnya

https://github.com/sunilkvasu/How-to-run-GitLab-in-a-docker-container

 

Tambahan perintah dasar docker

– list docker
docker images

hapus docker image
docker image rm namaimage

– lihat container yang berjalan
docker container ls

– show all container
docker container ls –all

– hapus container
docker container rm namacontainer

– stop container
docker container stop namacontainer

– membuat container dengan port yang bisa di akses dari luar
docker container create –name mongoserverilham -p 8080:27017 mongo

Leave a Reply

Your email address will not be published. Required fields are marked *