jsknnr / enshrouded-server

Run Enshrouded dedicated server in a container
MIT License
185 stars 23 forks source link

Compose fails to create #36

Closed kyeotic closed 8 months ago

kyeotic commented 8 months ago

Using the compose file as is

failed to deploy a stack: enshrouded Pulling 1b13d4e1a46e Pulling fs layer ec216d18f03e Pulling fs layer 1b13d4e1a46e Downloading 
// elided 1000 "downloading" lines
failed to register layer: lsetxattr user.overlay.impure /etc: operation not supported 

I have no trouble creating other compose stacks on this system. Shouldn't be a space issue either.

root@games:~#  df -hT
Filesystem                       Type      Size  Used Avail Use% Mounted on
/dev/mapper/pve-vm--110--disk--0 ext4       98G  1.9G   92G   2% /
tank/nas                         zfs       2.3T  1.8G  2.3T   1% /mnt/game-saves
none                             tmpfs     492K  4.0K  488K   1% /dev
udev                             devtmpfs   47G     0   47G   0% /dev/tty
tmpfs                            tmpfs      47G     0   47G   0% /dev/shm
tmpfs                            tmpfs      19G  172K   19G   1% /run
tmpfs                            tmpfs     5.0M     0  5.0M   0% /run/lock
overlay                          overlay    98G  1.9G   92G   2% /var/lib/docker/overlay2/f13558b131d8f1e956c7523867a7a244aa6ccc5f0fa48f88817f7db5f40a800c/merged
jsknnr commented 8 months ago

That looks like a Docker daemon error, nothing to do with compose. I don't use Docker or compose myself outside of quick tests before I publish an image, but to be thorough I ran the test again with my latest image with this repo's compose file and env file untouched.

docker-compose up -d
Creating network "container_default" with the default driver
Creating volume "container_enshrouded-persistent-data" with default driver
Pulling enshrouded (sknnr/enshrouded-dedicated-server:v2.0.4)...
v2.0.4: Pulling from sknnr/enshrouded-dedicated-server
1b13d4e1a46e: Pull complete
ec216d18f03e: Pull complete
Digest: sha256:20a433716fa7c5896226ff672f8a00e93ff34afdced1c711433308478de65bf3
Status: Downloaded newer image for sknnr/enshrouded-dedicated-server:v2.0.4
Creating container_enshrouded_1 ... done

docker ps
CONTAINER ID   IMAGE                                      COMMAND                  CREATED          STATUS         PORTS                                  NAMES
580b1d494416   sknnr/enshrouded-dedicated-server:v2.0.4   "/home/steam/entrypo…"   14 seconds ago   Up 4 seconds   0.0.0.0:15636-15637->15636-15637/udp   container_enshrouded_1

The error that you've posted, I've honestly not seen. Can you make sure that you are using the latest 2.0.4 image and could you also try restarting the Docker daemon?

jjakc-76 commented 8 months ago

I am also getting this error

[+] Running 2/3
 ⠹ enshrouded 2 layers [⣿⣿]      0B/0B      Pulling                                                                                                                                                                    35.3s
   ✔ 1b13d4e1a46e Pull complete                                                                                                                                                                                         1.3s
   ✔ ec216d18f03e Download complete                                                                                                                                                                                    16.2s
failed to register layer: lsetxattr user.overlay.impure /etc: operation not supported

Could it be that I am using the newer docker compose v2? Not sure why that would make a difference.

broizter commented 8 months ago

No, I'm also using compose v2 and don't encounter that error.

kyeotic commented 8 months ago

Ok, I managed to fix this. I had been running the latest version of docker, 25.1. Debian 12's current packaged version is 20.10. I downgraded to the packaged version and this error goes away.