Closed Mintux closed 3 years ago
Pterodactyl won't use the Docker credentials from ~/.docker/config.json: You need to provide them in your /etc/pterodactyl/config.yml
like so:
...
docker:
...
registries:
registry.example.com:
username: username_here
password: password_here
...
@rxdn That was already done. As described in the issue description this is only working for server containers but not for the image used as installation container.
Didn't fully read the issue, my apologies
I think that we should continue with installation even if the image fails to pull as long as it exists locally (the same behavior that starting a server has).
Is this issue solved? Because I tried:
registries:
registry.hub.docker.com:
username: myUsername
password: myToken
but it doesn't pull the image.
I will answer myself and others
If you use a docker image like this in your egg
username/repository:tag
That is, standard Docker repositories.
Then your registry should look like
registries:
username/repository:
username: myUsername
password: myPassword
For anybody searching for this, there is new documentation now: https://pterodactyl.io/wings/1.0/configuration.html#private-registries
Use the following syntax for every nodes' wings config:
registries:
registry.example.com:
username: "registryusername"
password: "registrypassword"
You don't need to insert your username in the repositorys name here!
The docker image path inside the egg should then look like this:
SteamRT3|repository.domain.com/group/repo:tag
Background (please complete the following information):
Describe the bug Using a private image for the installation container fails when it requires authentication. Seems like Wings only accepts the private authenticated images for the gameserver container itself, not for installation scripts.
If you use a private image with correct authentication in the installation script area of your egg, the install process from a new server aborts with this message:
I can confirm that the authentication area in the config.yml is correct, since the Daemon can pull images for the gameserver container itself, but not for installation containers.
To Reproduce Steps to reproduce the behavior:
Expected behavior Private docker images should also be available for installation containers.