Using thecodingmachine docker images with podman
I wanted to quickly develop something. I thought this is the perfect timing to migrate mentally from the insecure and almost dead docker to the alive and secure podman.
I went to the page of thecodingmachine and tried it with the following one-liner:
podman run -p 80:80 --rm --name php-bazzline -v "$PWD":/var/www/html thecodingmachine/php:7.4-v3-apache
Sadly nothing is working so I've created a feature request asking for podman support.
My current workaround is following
sudo -c "echo '<username>:100000:65536' >> /etc/subuid"
sudo -c "echo '<username>:100000:65536' >> /etc/subgid"
sudo reboot
And adapt the start up as following to prevent port issues (you are not allowed - by default - to use ports below 1024).
podman run -p 8080:80 --rm --name php-bazzline -v "$PWD":/var/www/html thecodingmachine/php:7.4-v3-apache
Thats it.