1. 程式人生 > >Docker:釋出自己映象問題denied: requested access to the resource is denied解決方法

Docker:釋出自己映象問題denied: requested access to the resource is denied解決方法

問題:

    釋出映象的時候,按照教程執行的,結果沒有成功,搜了下,找到解決方法了,記錄一下。

    

denied: requested access to the resource is denied

解決方法:

看到這個,只好搜尋了。還好,有不少帖子都有。看看下面我的執行步驟

PS C:\WINDOWS\system32> docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
learn/ping              latest              6ab895012fc7        About an hour ago   140MB
mreleven/docker-whale   latest              a1096bccdd95        2 years ago         274MB
learn/tutorial          latest              a7876479f1aa        5 years ago         128MB
PS C:\WINDOWS\system32> docker tag learn/ping shoneworn/ping
PS C:\WINDOWS\system32> docker push shoneworn/ping
The push refers to repository [docker.io/shoneworn/ping]
64aad28fc9e6: Pushed
ee1ba0cc9b81: Mounted from learn/ping
latest: digest: sha256:2d9dcd651ff630352be0faad74900ac57415a12809223062377d42c90c50ef8e size: 740
PS C:\WINDOWS\system32> docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
learn/ping              latest              6ab895012fc7        About an hour ago   140MB
shoneworn/ping          latest              6ab895012fc7        About an hour ago   140MB
mreleven/docker-whale   latest              a1096bccdd95        2 years ago         274MB
learn/tutorial          latest              a7876479f1aa        5 years ago         128MB
PS C:\WINDOWS\system32> docker run shoneworn/ping ping www.baidu.com
PING www.a.shifen.com (115.239.210.27) 56(84) bytes of data.
64 bytes from 115.239.210.27: icmp_req=1 ttl=37 time=17.7 ms
64 bytes from 115.239.210.27: icmp_req=2 ttl=37 time=57.4 ms
PS C:\WINDOWS\system32>
1.先列出所有映象
PS C:\WINDOWS\system32> docker images

2.將要釋出的映象改到自己賬戶名下。我的賬戶名:shoneworn

PS C:\WINDOWS\system32> docker tag learn/ping shoneworn/ping

3.再次釋出映象

PS C:\WINDOWS\system32> docker push shoneworn/ping

4.再次檢視映象列表

PS C:\WINDOWS\system32> docker images

5.執行自己賬戶下的映象測試

PS C:\WINDOWS\system32> docker run shoneworn/ping ping www.baidu.com

執行結果上圖中已經有了。

轉載請註明:https://blog.csdn.net/shoneworn


另外,如果你在學習的時候遇到過re-exec error: exit status 1: output: Failed to openRelative failed in Win32: open \\?\C:\ProgramData\Docker\windowsfilter\72f0582a1f68b9f9fd0570832f93051270a78b062edef177f04deecb706fe077\usr\share\man\man7\pam.7.gz: Cannot create a file when that file already exists. (0x1f) usr\share\man\man7\pam.7.gz 

請參考我上一篇提帖子

文章參考自:https://blog.csdn.net/xuming9/article/details/78148229