Why does the ping command flat out not work in a container?

tobywhiting10

Member
Jan 15, 2022
15
0
6
UK
tobywhiting10.com
Set up a standard Ubuntu 22.04.5 LTS container in Proxmox 8.3.2 to run nginx

Eventually went to run the ping command and was surprised when it simply didn't work: no 'command not recognised', no errors. It simply does nothing.
1736187740908.png
Googling around gives a bunch of results about network issues but I know the networking isn't a problem, it can talk with other devices just fine.

Doubt this is a proxmox issue and more something to do with Ubuntu, but wasn't really sure where else to go.
Any insight would be much appreciated
 
Hello tobywhiting10, my guess is that there might be some internet configuration or firewall issue. The thing is, ping will show errors if it receives an ICMP error, but is not required to show errors otherwise (e.g. if no response is received at all).

Just to be sure, you might want to check the output of ping -Ov IP_ADDRESS to see more information. If you still have issues, you can post the output of that command here.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!