arch-minecraftserver icon indicating copy to clipboard operation
arch-minecraftserver copied to clipboard

docker: invalid reference format: repository name must be lowercase.

Open xinmans opened this issue 3 years ago • 1 comments

root@ubuntu:/home/xinmans# docker run -d \

-p 8222:8222/tcp \
-p 25565:25565 \
--name=minecraftserver \
-v /apps/docker/minecraftserver:/config \
-v /etc/localtime:/etc/localtime:ro \
-e CREATE_BACKUP_HOURS=12 \
-e PURGE_BACKUP_DAYS=14 \
-e ENABLE_WEBUI_CONSOLE=yes \
-e ENABLE_WEBUI_AUTH=yes \
-e WEBUI_USER=admin \
-e WEBUI_PASS=minecraft \
-e WEBUI_CONSOLE_TITLE='Minecraft Server' \
-e CUSTOM_JAR_PATH=/config/minecraft/paperclip.jar \
-e JAVA_VERSION=latest \
-e JAVA_INITIAL_HEAP_SIZE=512M \
-e JAVA_MAX_HEAP_SIZE=1024M \
-e JAVA_MAX_THREADS=1 \
-e STARTUP_CMD=gamerule reducedDebugInfo true \
-e UMASK=000 \
-e PUID=0 \
-e PGID=0 \
binhex/arch-minecraftserver

docker: invalid reference format: repository name must be lowercase. See 'docker run --help'. root@ubuntu:/home/xinmans# exit

xinmans avatar Jan 24 '22 09:01 xinmans

most probably this:-

-e STARTUP_CMD=gamerule reducedDebugInfo true \

wrap the command in single quotes:-

-e STARTUP_CMD='gamerule reducedDebugInfo true' \

binhex avatar Jan 24 '22 09:01 binhex