LinuxGSM-Docker
LinuxGSM-Docker copied to clipboard
Dockerfile fails to build -- user permission problem
The Dockerfile attempts to add the linuxgsm user twice. It also attempts to switch to the newly-created linuxgsm user without changing the CWD from / and download the linuxgsm.sh script, which fails due to lack of write privileges.
See the following output from an attempt to run docker build .
Step 8/17 : USER linuxgsm
---> Running in 48c2517e43af
Removing intermediate container 48c2517e43af
---> f2db13db51a8
Step 9/17 : RUN wget https://linuxgsm.com/dl/linuxgsm.sh
---> Running in 10d242ef3015
--2020-06-09 00:19:57-- https://linuxgsm.com/dl/linuxgsm.sh
Resolving linuxgsm.com (linuxgsm.com)... 104.28.8.207, 104.28.9.207, 172.67.171.119, ...
Connecting to linuxgsm.com (linuxgsm.com)|104.28.8.207|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/linuxgsm.sh [following]
--2020-06-09 00:20:37-- https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/linuxgsm.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.128.133, 151.101.192.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.128.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14063 (14K) [text/plain]
linuxgsm.sh: Permission denied
Cannot write to ‘linuxgsm.sh’ (Success).
The command '/bin/sh -c wget https://linuxgsm.com/dl/linuxgsm.sh' returned a non-zero code: 3
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.