in Proxmox Virtual Environment 5.3-9
I run virtual machine
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
with docker version Docker version 18.09.7, build 2d0083d
bridge docker0
is installed
bridge name bridge id STP enabled interfaces
docker0 8000.02426bdb101b no
masquerading in iptables was set during install
iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DOCKER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DOCKER all -- anywhere !localhost/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 172.17.0.0/16 anywhere
Chain DOCKER (2 references)
target prot opt source destination
RETURN all -- anywhere anywhere
I also did https://stackoverflow.com/a/41453306/3358126
I can start container with docker run -it ubuntu bash
and have shell access
Here my problem starts. Inside container there's no network present at all. I'm missing ip, route, ping, ifconfig
commands.
apt
nor apt-get
will update. There's no editor installed so I can't change any files.
output of apt update comes after like 20 seconds timeout
apt update
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'archive.ubuntu.com'
I have /etc/resolv.conf
and the information seems correct:
nameserver 172.16.40.1
nameserver 8.8.8.8
search localdomain
Same way of installing docker on my Linux Mint produces working apt.
I'm fighting this second day, so any help is greatly appreciated