docker 学习操作记录 3

Posted shuitian-ys

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker 学习操作记录 3相关的知识,希望对你有一定的参考价值。

记录3

  1 [BEGIN] 2019/12/4 16:53:35
  2 Connecting to 192.168.114.130:22...
  3 Connection established.
  4 To escape to local shell, press Ctrl+Alt+].
  5 
  6 Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-70-generic x86_64)
  7 
  8  * Documentation:  https://help.ubuntu.com
  9  * Management:     https://landscape.canonical.com
 10  * Support:        https://ubuntu.com/advantage
 11 
 12  * Overheard at KubeCon: "microk8s.status just blew my mind".
 13 
 14      https://microk8s.io/docs/commands#microk8s.status
 15 
 16 3 个可升级软件包。
 17 0 个安全更新。
 18 
 19 New release 18.04.3 LTS available.
 20 Run do-release-upgrade to upgrade to it.
 21 
 22 *** 需要重启系统 ***
 23 Last login: Tue Dec  3 14:34:20 2019 from 192.168.114.1
 24 -->@coder:~$ ls
 25 code  examples.desktop  myninx  公共的  模板  视频  图片  文档  下载  音乐  桌面
 26 -->@coder:~$ 
 27 -->@coder:~$ 
 28 -->@coder:~$ 
 29 *** 需要重启系统 ***
 30 Last login: Tue Dec  3 14:34:20 2019 from 192.168.114.1
 31 -->@coder:~$ ls
 32 code  examples.desktop  myninx  公共的  模板  视频  图片  文档  下载  音乐  桌面
 33 -->@coder:~$ 
 34 -->@coder:~$ 
 35 -->@coder:~$ 
 36 -->@coder:~$ sudo docker images
 37 [sudo] coder 的密码: 
 38 REPOSITORY                    TAG                 IMAGE ID            CREATED             SIZE
 39 myweb                         v1                  22628d6caa61        33 minutes ago      134MB
 40 myip                          latest              fec6dab28edf        54 minutes ago      139MB
 41 ngingx                        v3                  4afd6b31fab7        3 hours ago         126MB
 42 nginx                         v2                  50776ea0e5a4        3 hours ago         126MB
 43 ubuntu                        16.04               56bab49eef2e        7 days ago          123MB
 44 nginx                         latest              231d40e811cd        11 days ago         126MB
 45 alpine                        latest              965ea09ff2eb        6 weeks ago         5.55MB
 46 centos                        latest              0f3e07c0138f        2 months ago        220MB
 47 ansible/ubuntu14.04-ansible   latest              4621d4fe2959        4 years ago         461MB
 48 -->@coder:~$ sudo docker images --digests
 49 REPOSITORY                    TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
 50 myweb                         v1                  <none>                                                                    22628d6caa61        33 minutes ago      134MB
 51 myip                          latest              <none>                                                                    fec6dab28edf        54 minutes ago      139MB
 52 ngingx                        v3                  <none>                                                                    4afd6b31fab7        3 hours ago         126MB
 53 nginx                         v2                  <none>                                                                    50776ea0e5a4        3 hours ago         126MB
 54 ubuntu                        16.04               sha256:e10375c69cf9e22989c82b0a87c932a21e33619ee322d6c7ce6a61456f54c30c   56bab49eef2e        7 days ago          123MB
 55 nginx                         latest              sha256:50cf965a6e08ec5784009d0fccb380fc479826b6e0e65684d9879170a9df8566   231d40e811cd        11 days ago         126MB
 56 alpine                        latest              sha256:c19173c5ada610a5989151111163d28a67368362762534d8a8121ce95cf2bd5a   965ea09ff2eb        6 weeks ago         5.55MB
 57 centos                        latest              sha256:f94c1d992c193b3dc09e297ffd54d8a4f1dc946c37cbeceb26d35ce1647f88d9   0f3e07c0138f        2 months ago        220MB
 58 ansible/ubuntu14.04-ansible   latest              sha256:a7ead7e981ac10be7da9b1122e4fafc29869b365d2b4e2423364e31b3076cef4   4621d4fe2959        4 years ago         461MB
 59 -->@coder:~$ sudo docker images --digests
 60 REPOSITORY                    TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
 61 myweb                         v1                  <none>                                                                    22628d6caa61        34 minutes ago      134MB
 62 myip                          latest              <none>                                                                    fec6dab28edf        55 minutes ago      139MB
 63 ngingx                        v3                  <none>                                                                    4afd6b31fab7        3 hours ago         126MB
 64 nginx                         v2                  <none>                                                                    50776ea0e5a4        3 hours ago         126MB
 65 ubuntu                        16.04               sha256:e10375c69cf9e22989c82b0a87c932a21e33619ee322d6c7ce6a61456f54c30c   56bab49eef2e        7 days ago          123MB
 66 nginx                         latest              sha256:50cf965a6e08ec5784009d0fccb380fc479826b6e0e65684d9879170a9df8566   231d40e811cd        11 days ago         126MB
 67 alpine                        latest              sha256:c19173c5ada610a5989151111163d28a67368362762534d8a8121ce95cf2bd5a   965ea09ff2eb        6 weeks ago         5.55MB
 68 centos                        latest              sha256:f94c1d992c193b3dc09e297ffd54d8a4f1dc946c37cbeceb26d35ce1647f88d9   0f3e07c0138f        2 months ago        220MB
 69 ansible/ubuntu14.04-ansible   latest              sha256:a7ead7e981ac10be7da9b1122e4fafc29869b365d2b4e2423364e31b3076cef4   4621d4fe2959        4 years ago         461MB
 70 -->@coder:~$ sudo docker images --digests
 71 REPOSITORY                    TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
 72 myweb                         v1                  <none>                                                                    22628d6caa61        34 minutes ago      134MB
 73 myip                          latest              <none>                                                                    fec6dab28edf        55 minutes ago      139MB
 74 ngingx                        v3                  <none>                                                                    4afd6b31fab7        3 hours ago         126MB
 75 nginx                         v2                  <none>                                                                    50776ea0e5a4        3 hours ago         126MB
 76 ubuntu                        16.04               sha256:e10375c69cf9e22989c82b0a87c932a21e33619ee322d6c7ce6a61456f54c30c   56bab49eef2e        7 days ago          123MB
 77 nginx                         latest              sha256:50cf965a6e08ec5784009d0fccb380fc479826b6e0e65684d9879170a9df8566   231d40e811cd        11 days ago         126MB
 78 alpine                        latest              sha256:c19173c5ada610a5989151111163d28a67368362762534d8a8121ce95cf2bd5a   965ea09ff2eb        6 weeks ago         5.55MB
 79 centos                        latest              sha256:f94c1d992c193b3dc09e297ffd54d8a4f1dc946c37cbeceb26d35ce1647f88d9   0f3e07c0138f        2 months ago        220MB
 80 ansible/ubuntu14.04-ansible   latest              sha256:a7ead7e981ac10be7da9b1122e4fafc29869b365d2b4e2423364e31b3076cef4   4621d4fe2959        4 years ago         461MB
 81 -->@coder:~$ sudo docker rmi ngingx@4afd6b31fab7
 82 Error response from daemon: invalid reference format
 83 -->@coder:~$ sudo docker rmi ngingx
 84 Error: No such image: ngingx
 85 -->@coder:~$ sudo docker images
 86 REPOSITORY                    TAG                 IMAGE ID            CREATED             SIZE
 87 myweb                         v1                  22628d6caa61        43 minutes ago      134MB
 88 myip                          latest              fec6dab28edf        About an hour ago   139MB
 89 ngingx                        v3                  4afd6b31fab7        3 hours ago         126MB
 90 nginx                         v2                  50776ea0e5a4        3 hours ago         126MB
 91 ubuntu                        16.04               56bab49eef2e        7 days ago          123MB
 92 nginx                         latest              231d40e811cd        11 days ago         126MB
 93 alpine                        latest              965ea09ff2eb        6 weeks ago         5.55MB
 94 centos                        latest              0f3e07c0138f        2 months ago        220MB
 95 ansible/ubuntu14.04-ansible   latest              4621d4fe2959        4 years ago         461MB
 96 -->@coder:~$ sudo docker rmi ngingx
 97 Error: No such image: ngingx
 98 -->@coder:~$ sudo docker rmi fec6
 99 Error response from daemon: conflict: unable to delete fec6dab28edf (must be forced) - image is being used by stopped container a5acd4cc83ef
100 -->@coder:~$ sudo docker container ls
101 CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                    PORTS                NAMES
102 5a2a21ea4579        myweb:v1            "nginx -g ‘daemon of…"   42 minutes ago      Up 42 minutes (healthy)   0.0.0.0:80->80/tcp   web
103 
104 [END] 2019/12/4 17:11:39

 

以上是关于docker 学习操作记录 3的主要内容,如果未能解决你的问题,请参考以下文章

Centos7.3 Docker安装部署学习记录1

Docker 学习笔记 Docker 基础操作实,Docker仓库数据卷,网络基础学习

[学习记录]Docker基本操作指令

学习笔记:python3,代码片段(2017)

Docker 学习记录

ElasticSearch学习问题记录——Invalid shift value in prefixCoded bytes (is encoded value really an INT?)(代码片段