Docker Gitlab

Docker Compose报错Failed to Setup IP tables

流过昼夜 提交于 2020-02-26 18:43:28
详细信息如下: [root@hecg docker-gitlab]# docker-compose up -d Creating network "docker-gitlab_bridge" with driver "bridge" ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-1b0d89adb807 -j RETURN: iptables: No chain/target/match by that name. (exit status 1)) 查了资料,是因为防火墙修改后没有重启Docker服务,重启Docker服务后就好了: ## 重启docker [root@hecg docker-gitlab]# systemctl restart docker ## 再次运行 ok [root@hecg docker-gitlab]# docker-compose up -d Creating network "docker-gitlab_bridge" with driver "bridge" Creating docker-gitlab_gitlab_1 ... done 来源:

docker-gitlab-runner

久未见 提交于 2019-12-18 20:06:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 拉取镜像 docker pull gitlab/gitlab-runner:latest 生成容器 docker run -d \ --name gitlab-runner \ --restart always \ -v /gitlab-runner/config:/etc/gitlab-runner \ -v /var/run/docker.sock:/var/run/docker.sock \ gitlab/gitlab-runner:latest 进入容器 docker exec -it gitlab-runner /bin/bash 注册runner,并按如下提示输入: gitlab-runner register > Please enter the gitlab-ci coordinator URL https://code.weflys.com > Please enter the gitlab-ci token for this runner in1dadgmRQMyso-C9bzW > Please enter the gitlab-ci description for this runner gitlab-runner > Please enter the gitlab-ci tags

gitlab-runner 配合docker 构建自动化部署

时光总嘲笑我的痴心妄想 提交于 2019-12-01 17:19:38
搭建gitlab-ci 自动化部署 安装 gitlab ci runner curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash sudo yum install gitlab-ci-multi-runner -y 查看是否运行正常 gitlab-ci-multi-runner status gitlab-runner: Service is running! 设置Docker权限 为了能让gitlab-runner 能正确的执行docker命令,需要把gitlab-runner 用户添加到docker group里,然后重启docker和gitlab ci runner sudo usermod -aG docker gitlab-runner 如果遇到用户权限问题无法解决 可以赋予gitlab-runner用户root权限,具体操作可参考 https://www.cnblogs.com/asukayui/p/3839915.html 来源: oschina 链接: https://my.oschina.net/u/3628952/blog/2253888