Создание простого образа приложения java с помощью jenkins с использованием docker плагинов,
Started by user PIYUSH NIKHADE ADMIN
Running as SYSTEM
Building in workspace C:\Program Files (x86)\Jenkins\workspace\docker-jenkins
No credentials specified
> C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/piyu2032/myjenfiles.git # timeout=10
Fetching upstream changes from https://github.com/piyu2032/myjenfiles.git
> C:\Program Files\Git\bin\git.exe --version # timeout=10
> C:\Program Files\Git\bin\git.exe fetch --tags --force --progress -- https://github.com/piyu2032/myjenfiles.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 7a263a2cb70ed81e9983150dcc4b5c6eb064e164 (refs/remotes/origin/master)
> C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
> C:\Program Files\Git\bin\git.exe checkout -f 7a263a2cb70ed81e9983150dcc4b5c6eb064e164 # timeout=10
Commit message: "Update Dockerfile"
> C:\Program Files\Git\bin\git.exe rev-list --no-walk 7a263a2cb70ed81e9983150dcc4b5c6eb064e164 # timeout=10
[docker-jenkins] $ docker build -t piyush202/myimages:aabbcc --pull=true "C:\Program Files (x86)\Jenkins\workspace\docker-jenkins"
Sending build context to Docker daemon 64.51kB
Step 1/5 : FROM java:8
8: Pulling from library/java
Digest: sha256:c1ff613e8ba25833d2e1940da0940c3824f03f802c449f3d1815a66b7f8c0e9d
Status: Image is up to date for java:8
---> d23bdf5b1b1b
Step 2/5 : COPY . /Jenkins/Training/SampleJavaCode
---> Using cache
---> 85b9251bb41b
Step 3/5 : WORKDIR /Jenkins/Training/SampleJavaCode
---> Using cache
---> cc4e24335788
Step 4/5 : RUN javac Factorial.java
---> Using cache
---> c9dd48a94088
Step 5/5 : CMD java Factorial
---> Using cache
---> 177516fa5b31
Successfully built 177516fa5b31
Successfully tagged piyush202/myimages:aabbcc
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
[docker-jenkins] $ docker tag 177516fa5b31 piyush202/myimages:latest
[docker-jenkins] $ docker inspect 177516fa5b31
[docker-jenkins] $ docker push piyush202/myimages:aabbcc
The push refers to repository [docker.io/piyush202/myimages]
0811dc862256: Preparing
6e98159d8f0d: Preparing
35c20f26d188: Preparing
c3fe59dd9556: Preparing
6ed1a81ba5b6: Preparing
a3483ce177ce: Preparing
ce6c8756685b: Preparing
30339f20ced0: Preparing
0eb22bfb707d: Preparing
a2ae92ffcd29: Preparing
a3483ce177ce: Waiting
ce6c8756685b: Waiting
30339f20ced0: Waiting
0eb22bfb707d: Waiting
a2ae92ffcd29: Waiting
***denied: requested access to the resource is denied
Build step 'Docker Build and Publish' marked build as fail
Finished: FAILURE***
Я все еще получаю ту же ошибку снова и снова. Я правильно настроил учетные данные Docker. Я до сих пор не могу сделать то же самое в Docker Hub. Так что тут можно сделать?