panel icon indicating copy to clipboard operation
panel copied to clipboard

docker_image validation prevents local images

Open danny6167 opened this issue 1 year ago • 4 comments

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?

  • [X] I have searched the existing issues before opening this issue.
  • [X] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • [X] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.

danny6167 avatar May 16 '24 23:05 danny6167

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

QuintenQVD0 avatar May 17 '24 06:05 QuintenQVD0

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 ;=)

stive101 avatar May 17 '24 07:05 stive101

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 avatar May 17 '24 09:05 danny6167

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

danny6167 avatar May 17 '24 13:05 danny6167

Closing as PR to fix was merged

danny6167 avatar Aug 29 '24 03:08 danny6167