Reputation: 81
When running postgresql alpine image with podman :
podman run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=test -e POSTGRES_USER=test -d postgres:11-alpine
the result is :
Error: /usr/bin/slirp4netns failed: "open(\"/dev/net/tun\"): No such device\nWARNING: Support for sandboxing is experimental\nchild failed(1)\nWARNING: Support for sandboxing is experimental\n"
The running system is archlinux. Is there a way to fix this error or a turn arround ?
Thanks
Upvotes: 0
Views: 3612
Reputation: 9922
I assume you upgraded Arch packages recently. Most likely your system needs a restart.
Upvotes: 1
Reputation: 101
Is slirp4netns correctly installed? Check the project Site for information.
Sometimes the flag order matters. try -d
first and -p
last (directly infornt of the image) looking like:
podman run -d --name postgres -e POSTGRES_PASSWORD=test -e POSTGRES_USER=test -p 5432:5432 postgres:11-alpine
Try only creating the neccessary password, then log into your container and create manually (this always worked for me)
podman run -d --name postgres -e POSTGRES_PASSWORD=test -p 5432:5432 postgres:11-alpline
podman exec -it postgres bash
su - postgres
psql
CREATE USER testuser WITH PASSWORD 'testpassword'
| DokuCREATE DATABASE testdata WITH OWNER testuser
\l+
Upvotes: 1