Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
Panel or Wings: Wings
Version of Wings: 1.4.0
Wings Logs:
ERROR: [Apr 28 17:16:29.989] failed to create server environment during install process error=environment/docker: failed to create container: Error response from daemon: invalid reference format server=7bdf25ef-8efe-4169-b91c-92341c7dc245
Stacktrace:
Error response from daemon: invalid reference format
environment/docker: failed to create container
github.com/pterodactyl/wings/environment/docker.(*Environment).Create
/wings/environment/docker/container.go:233
github.com/pterodactyl/wings/server.(*Server).CreateEnvironment
/wings/server/server.go:215
github.com/pterodactyl/wings/router.postCreateServer.func1
/wings/router/router_system.go:68
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1373
Server's OS: Ubuntu 20.04
Your Computer's OS & Browser: Ubuntu 20.04 & Firefox 88
Background:
Panel or Wings: Wings Version of Wings: 1.4.0 Wings Logs:
Server's OS: Ubuntu 20.04 Your Computer's OS & Browser: Ubuntu 20.04 & Firefox 88
Describe the bug
Local images are prefixed with a tilde "\~" to avoid doing trying a pull of the image. The tilde is however not stripped when passing the image name to docker and thus the creation of the container fails. Somewhere in this code segment the image string has to be stripped if it starts with "\~": https://github.com/pterodactyl/wings/blob/3fda5485419404f87212eb06361f6834dc07e4b5/environment/docker/container.go#L159
Output of
docker info
:Output of
uname -a
:Linux Simon-Legion 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
To Reproduce
Expected behavior Server gets created using the local image.