Swish docker image

Hi,

The swish docker image on docker-hub is 2 years old. Any update ?

best,

No. Should get an update. I tried the trivial, but there seems to be an issue with the current versions :frowning: Later …

Pushed a new version based on the SWI-Prolog 9.3.29 docker image.

Thank you Jan.

Envoyé de mon iPhone

Hi Jan,

I pulled the image but it does not work. The server is running but no menu appears, and therefore none of my files are accessible.

I used the following command to run the container:

docker run -it --user root -v $env:OneDrive/Documents/Docker/dockerBind/swishData:/data -p 3050:3050 swipl/swish:latest

I also get these warnings :

useradd warning: swish’s uid 0 outside of the UID_MIN 1000 and UID_MAX 60000 range.
useradd warning: config’s uid 0 outside of the UID_MIN 1000 and UID_MAX 60000 range.

Note that the directory that is mounted should have two subdirs: config-enabled and data. These directories must be owned by a normal user, not root. The user of these directories are preferably different. On startup, the docker creates a user that matches the data directory and runs the server under that user. Root is not going to work because the SWI-Prolog HTTP server refuses to run as root.

You also do not need --user root

Ok thank you Jan. Despite your explanations it did not work but a simple CTRL+F5 in the browser eventually solved the problem :grinning_face:

1 Like