管理者ユーザーを有効化する
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
yuta@DESKTOP-V36210S:/$ docker login container0910.azurecr.ioUsername: Container0910 Password: Login Succeeded yuta@DESKTOP-V36210S:/$ yuta@DESKTOP-V36210S:/$ yuta@DESKTOP-V36210S:/$ docker run -i -t ubuntu /bin/bash Unable to find image 'ubuntu:latest' locally latest: Pulling from library/ubuntu 5bed26d33875: Pull complete f11b29a9c730: Pull complete 930bda195c84: Pull complete 78bf9a5ad49e: Pull complete Digest: sha256:bec5a2727be7fff3d308193cfde3491f8fba1a2ba392b7546b43a051853a341d Status: Downloaded newer image for ubuntu:latest root@addecb772806:/# root@addecb772806:/# touch aaa.txt / root@addecb772806:/# ls /aaa.txt /aaa.txt root@addecb772806:/# root@addecb772806:/# exit exit yuta@DESKTOP-V36210S:/$ yuta@DESKTOP-V36210S:/$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES addecb772806 ubuntu "/bin/bash" 2 minutes ago Exited (0) 31 seconds ago amazing_blackburn yuta@DESKTOP-V36210S:/$ yuta@DESKTOP-V36210S:/$ docker commit addecb772806 ubuntu-azure sha256:690161fdaca78a2e908ac492b67804320342111b99ab05424bffdca87b9a69d2 yuta@DESKTOP-V36210S:/$ yuta@DESKTOP-V36210S:/$ docker tag ubuntu-azure container0910.azurecr.io/ubuntu-azure yuta@DESKTOP-V36210S:/$ docker push container0910.azurecr.io/ubuntu-azure The push refers to repository [container0910.azurecr.io/ubuntu-azure] 856ac27ce727: Pushed 16542a8fc3be: Pushed 6597da2e2e52: Pushed 977183d4e999: Pushed c8be1b8f4d60: Pushed latest: digest: sha256:f2423920a7e606722806f395ff81165cf37111a1744d39e383dcfcbcde55976a size: 1359 yuta@DESKTOP-V36210S:/$ |