拉取git镜像
docker pull gitlab/gitlab-ce:latest
创建docker container
docker run --publish 20443:443 --publish 2080:80 \
--publish 2022:22 --name gitlab
--volume /usr/local/gitlab/config:/etc/gitlab \
--volume /usr/local/gitlab/logs:/var/log/gitlab \
--volume /usr/local/gitlab/data:/var/opt \
gitlab/gitlab-ce
错误信息
Error executing action `run` on resource 'ruby_block[directory resource:]'
Mixlib::ShellOut::ShellCommandFailed
将
/usr/local/gitlab/data:/var/opt/gitlab
改为:
/usr/local/gitlab/data:/var/opt