Blogger Information
Blog 143
fans 1
comment 0
visits 440090
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
docker安装gogs
弘德誉曦的博客
Original
1191 people have browsed it

注:docker的版本差异可能很大,需要识别!

运行命令安装

docker pull gogs/gogs

docker run -di -p 10022:22 -p 3000:3000 --name=gogs -v /opt/docker/gogs/:/data gogs/gogs

在docker容器上部署项目后,启动docker容器,出现

iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8001 -j DNAT --to-destination 172.17.0.5:8080 ! -i docker0: iptables: No chain/target/match by that name.

解决方案:

  1、先看能不能ping通网络。若能依次执行以下命令;

  2、pkill docker

  3、iptables -t nat -F

  4、ifconfig docker0 down

  5、brctl delbr docker0

  6、docker -d

  7、systmctl restart docker 

  8、重启docker服务

更多可参考详细教程

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post