You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the issue you encountered was related to permissions on the local registry. The error message you received indicates that the Docker client was unable to push the container image to the local registry.
When you started the registry container using the command docker run -d -p 5000:5000 --name registry -v /registry/data:/var/lib/registry --restart always registry:2, you did not specify the REGISTRY_HTTP_HOST flag. This flag sets the hostname or IP address of the Docker registry server, which is necessary for the Docker client to authenticate and push the container image to the local registry.
Adding the REGISTRY_HTTP_HOST flag to the registry container with the command docker run -e REGISTRY_HTTP_HOST=localhost:50001 -d -p 5001:5000 --name registry registry:2 resolved the issue, as it correctly set the working permissions for the local registry.
Local host registry permissions failing as per documentation instructions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Push of container to local repo should be successful first time
Screenshots
NA. see code snippets
Desktop (please complete the following information):
Additional context
Issue is resolved by adding
REGISTRY_HTTP_HOST
flag which sets correct working permissions and is successfulThe text was updated successfully, but these errors were encountered: