Popen with ping doesn't work in a Docker container

Based on some additional research (this thread included), I think you're facing the issue with libseccomp2 on your host Pi system. Take a look at this forum thread for more insights: Docker Container Does Not Start - #4 by kcollins1

First thing I'd do is a sudo apt-get update && sudo apt-get upgrade on your Pi and try the build again. If this works, we should probably add that guidance to the other thread (since users would no longer need to go manually update that library and instead be able to have the system take care of the update). I'm running Ubuntu 21.04 64-bit on my Pi system (discussed briefly here) which is already running libseccomp2 v2.5.1... I can't say whether that is necessarily a good option if you're making use of RaspPi GPIO, I haven't done any hardware projects under Ubuntu on RaspPi yet...