pterodactyl / panel

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.
https://pterodactyl.io
Other
6.39k stars 1.56k forks source link

docker_image validation prevents local images #5101

Open danny6167 opened 2 months ago

danny6167 commented 2 months ago

Current Behavior

"The image format is invalid." error is received when attempting to use an image starting with ~ (local image)

Expected Behavior

Image names beginning with ~ should be accepted

Steps to Reproduce

Enter a docker image starting with ~

Panel Version

1.11.7

Wings Version

N/A

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

No response

Is there an existing issue for this?

QuintenQVD0 commented 2 months ago

If you build a local image with the -t flag it still works as you can then just use dev:latest?

stive101 commented 2 months ago

with quintens soution it will work, u need to tag dev:latest to your image, and after that dev:latest is your new image name, with that u can start you custom image, thanks again Quinten, i try to figure out what i can do here for hours now ;=)

danny6167 commented 2 months ago

Yeah it still needs to be fixed though as this isn't going to work for all cases.

I'll submit a fix in a few hours.

danny6167 commented 2 months ago

I've submitted a PR. If you need to fix this before the next release you can apply the patch as such

cd /var/www/pterodactyl
curl https://patch-diff.githubusercontent.com/raw/pterodactyl/panel/pull/5103.patch | patch -p1