标签:start volume get pre var latest class reg echo
安装要求:运行内存必须大于等于2G
一、安装docker
wget -qO- https://get.docker.com/ | sh
镜像加速:
echo ‘{"registry-mirrors": ["https://registry.docker-cn.com"]}‘ > /etc/docker/daemon.json systemctl restart dcoker
测试是否成功:
docker run hello-world
二、安装gitlab
sudo docker run --detach --hostname zqyxt.com --publish 4430:443 --publish 800:80 --publish 220: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
三、配置邮箱
标签:start volume get pre var latest class reg echo
原文地址:https://www.cnblogs.com/dzqdzq/p/9750126.html