My little pterodactyl / minecraft / docker problems sheet
I am setting up a Pterodactyl server for a buddy, with a minecraft server on and a few extra goodies (prometheus exporter for minecraft metrics, overviewer for mapping). I've done this a couple times, thought it would be easy enough, however that was not the case.
Invalid mount / config type for "bind"
This one had me stumped. It really did.
- Directory did exist
- It was owned by pterodactyl, which root can access, even as pterodactyl user trying to create the mount it fails
- I thought maybe it's a red herring and it could not mount my worlds directory, from
/opt/minecraft
Docker was installed as a snap, I don't remember doing this but it's my friends server so :shrug:
Anyway, install the non-snap docker (I hate snaps) and all is fine.
Wings: "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
It is running! Turns out that there are 2 things to look for here.
systemctl enable --now docker containerd
Enable docker and the container dsystemctl restart docker.socket
Make sure you stop and startdocker.socket
which is managed by systemd separately.
Member discussion