dockerfile/ubuntu

Can't access internet

apaj opened this issue · 2 comments

apaj commented

A container created using this Dockerfile can't access internet:

root@cf81115deee8:~# ping google.com
bash: ping: command not found
root@cf81115deee8:~# apt-get install ping
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ping

whereas other docker containers I have on the same physical machine successfully use apt-get.
Is there anything else one should do to get online from within this container?

idk bruh