Docker 运行gitlab官方文档

官方文档:

https://hub.docker.com/r/beginor/gitlab-ce/
sudo mkdir -p /mnt/sda1/gitlab/etc
sudo mkdir -p /mnt/sda1/gitlab/log
sudo mkdir -p /mnt/sda1/gitlab/data
docker run \
    --detach \
    --publish 8443:443 \
    --publish 8080:80 \
    --name gitlab \
      --hostname 47.99.145.156
    --restart unless-stopped \
    --volume /mnt/sda1/gitlab/etc:/etc/gitlab \
    --volume /mnt/sda1/gitlab/log:/var/log/gitlab \
    --volume /mnt/sda1/gitlab/data:/var/opt/gitlab \
    beginor/gitlab-ce:11.3.0-ce.0
[root@sannian min]# docker run -d --restart=always -p 9999:80 --hostname 47.99.145.156  --volume /mnt/sda1/gitlab/etc:/etc/gitlab     --volume /mnt/sda1/gitlab/log:/var/log/gitlab --volume /mnt/sda1/gitlab/data:/var/opt/gitlab --name gitlab twang2218/gitlab-ce-zh
上一篇:python获取颜色


下一篇:docker 运行指定内存