Gitlab Runner 运维日记

不设置DNS Docker 会出现偶尔不能访问网络

解决方案就是设置一个 DNS

sudo vi /etc/netplan/50-cloud-init.yaml
sudo netplan apply

设置完成之后就是这样

network:
    ethernets:
        eth0:
            addresses: []
            dhcp4: true
            nameservers:
              addresses: [114.114.114.114,8.8.4.4]
    version: 2

Ftp Server 问题

Filezilla報錯:You appear to be behind a NAT router. Please configure the passive mode settings and ...

解决方案

设置固定ip即可