docker-spigot icon indicating copy to clipboard operation
docker-spigot copied to clipboard

Latest image complains about missing sudo and exits right away

Open jackxuhong opened this issue 5 years ago • 4 comments

The latest image doesn't seem to work, please advise, thanks.

$ docker run -it -p 25565:25565 ashdev/minecraft-spigot:latest
/spigot_init.sh: line 6: sudo: command not found

jackxuhong avatar Apr 25 '20 15:04 jackxuhong

Just tested on ubuntu and a Centos hostOS. sudo present on both systems, and path seems ok.

Still throws 'sudo not found' error

Nykaer avatar Apr 28 '20 06:04 Nykaer

Nykaer, sudo is missing in the docker image, not the host system.

jackxuhong avatar May 01 '20 18:05 jackxuhong

Yup, and I believe 'RUN apt-get install -y software-properties-common sudo' should fix that. But it doesn't.

Nykaer avatar May 02 '20 06:05 Nykaer

Thanks Nykaer,

You're right my fix was not working, I had actually used apt to test which does work. I've updated my pull request to use apt instead as apt-get was getting 404s on some repos when installing sudo dependencies by the looks of it.

This is the change you can make: 8e582a845dbf5dcb1e4ca73d1b70fa1f0fee20fa

QuietKerb avatar May 09 '20 14:05 QuietKerb