I had to do some extra stuff for my containers, here's some info from a tutorial I wrote:
Following the Arch wiki:
# Dependencies
`yay -S podman slirp4netns aardvark-dns`
# Setup podman-compose and the venv
```
python -m venv .venv
source .venv/bin/activate
pip3 install --user podman-compose
```
On WSL, you'll need to be on Debian bookworm or newer. Older versions of podman-compose for, ie, bullseye, do not work.
# Reserving alternate UIDs/GIDs
`# usermod --add-subuids 100000-165535 --add-subgids 100000-165535 username`
# Setup the storage configuration to overlay
Create/edit the following file:
`vim ~/.config/containers/storage.conf`
Add/edit the following line:
```
[storage]
driver="overlay"
```
# Propagate changes to podman
`$ podman system migrate`
# Bring the systems up
`podman-compose up`
# I'm on WSL and it's not working (DNS issues)
Check if the network created by podman has dns enabled:
```
% podman network inspect $containername_default | grep dns
"dns_enabled": true,
```
If it's false, install another dns resolver:
```
sudo apt install golang-github-containernetworking-plugin-dnsname
```
Then delete the network created by podman-compose:
`podman network rm $containername_default`
## Out of memory when running `podman-compose up`
This error may include "could not map anonymous shared memory".
If you're on a mac, try increasing the amount of memory the VM can use, eg:
https://stackoverflow.com/questions/70114200/increase-podman...
```
podman machine stop
podman machine set --memory 4096
podman machine start
```
This will provide podman with 4GB of memory to work with when spawning containers.
https://gist.github.com/ijustlovemath/82b4fa31a7c745e87bac5f...