Ao fazer o Push da imagem para Docker Hub, tomei esse erro.
No campo Build/ Publish Docker Image, no item Registry Credentials eu deixei o meu login e senha do docker hub..
Step 7/7 : CMD ["gunicorn", "to_do.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "3"]
---> Running in 4b991f48f55a
Removing intermediate container 4b991f48f55a
---> 9b68f20937b8
Successfully built 9b68f20937b8
Tagging built image with aluracursos/django_todolist_image_build:latest
Docker Build Response : 9b68f20937b8
Pushing [aluracursos/django_todolist_image_build]
The push refers to repository [docker.io/aluracursos/django_todolist_image_build]
1530b82a2501: Preparing
94ff72b6a53e: Preparing
bd269dd94c75: Preparing
8a6c8639bc7e: Preparing
e6758511cf63: Preparing
658a7c8576fd: Preparing
69e209e74949: Preparing
3bfeb766f97b: Preparing
ea1227feeccb: Preparing
9cae1895156d: Preparing
52dba9daa22c: Preparing
78c1b9419976: Preparing
658a7c8576fd: Waiting
69e209e74949: Waiting
3bfeb766f97b: Waiting
ea1227feeccb: Waiting
9cae1895156d: Waiting
52dba9daa22c: Waiting
78c1b9419976: Waiting
ERROR: Build step failed with exception
com.github.dockerjava.api.exception.DockerClientException: Could not push image: denied: requested access to the resource is denied
at com.github.dockerjava.core.command.PushImageResultCallback.awaitSuccess(PushImageResultCallback.java:49)
at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher$Run.pushImages(DockerBuilderPublisher.java:397)
at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher$Run.run(DockerBuilderPublisher.java:296)
at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher.perform(DockerBuilderPublisher.java:427)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1818)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Build / Publish Docker Image' marked build as failure
Finished: FAILURE