⑴Fetched kB in s ( kB/s
⑵Selecting previously unselected package libgpm:amd.
⑶(Reading database 。。。 files and directories currently installed.
⑷Preparing to unpack 。。。/libgpm_..-._amd.deb 。。。
⑸Unpacking libgpm:amd (..-. 。。。
⑹Selecting previously unselected package libpython.-minimal:amd.
⑺Preparing to unpack 。。。/libpython.-minimal_..-_amd.deb 。。。
⑻Unpacking libpython.-minimal:amd (..- 。。。
⑼Selecting previously unselected package libpython.-stdlib:amd.
⑽Preparing to unpack 。。。/libpython.-stdlib_..-_amd.deb 。。。
⑾Unpacking libpython.-stdlib:amd (..- 。。。
⑿Selecting previously unselected package libpython.:amd.
⒀Preparing to unpack 。。。/libpython._..-_amd.deb 。。。
⒁Unpacking libpython.:amd (..- 。。。
⒂Selecting previously unselected package vim-runtime.
⒃Preparing to unpack 。。。/vim-runtime_%a..-ubuntu_all.deb 。。。
⒄Adding ‘diversion of /usr/share/vim/vim/doc/help.txt to /usr/share/vim/vim/doc/help.txt.vim-tiny by vim-runtime’
⒅Adding ‘diversion of /usr/share/vim/vim/doc/tags to /usr/share/vim/vim/doc/tags.vim-tiny by vim-runtime’
⒆Unpacking vim-runtime (:..-ubuntu 。。。
⒇Selecting previously unselected package vim.
⒈Preparing to unpack 。。。/vim_%a..-ubuntu_amd.deb 。。。
⒉Unpacking vim (:..-ubuntu 。。。
⒊Setting up libgpm:amd (..-. 。。。
⒋Setting up libpython.-minimal:amd (..- 。。。
⒌Setting up libpython.-stdlib:amd (..- 。。。
⒍Setting up libpython.:amd (..- 。。。
⒎Setting up vim-runtime (:..-ubuntu 。。。
⒏Processing /usr/share/vim/addons/doc
⒐Setting up vim (:..-ubuntu 。。。
⒑update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim in auto mode
⒒update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff in auto mode
⒓update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim in auto mode
⒔update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview in auto mode
⒕update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi in auto mode
⒖update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view in auto mode
⒗update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex in auto mode
⒘update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor in auto mode
⒙Processing triggers for libc-bin (.-ubuntu. 。。。
⒚root:/# exit
⒛当我们输入exit后,容器就停止工作了。只有在指定的/bin/bash命令处于运行状态的时间,容器才会相应地处于运行状态。一旦退出容器,/bin/bash命令也就结束了,这时容器也就停止了。
①查看系统中容器的列表
②[rootlocalhost ~]# docker ps -a
③CONTAINER ID IMAGE MAND CREATED STATUS PORTS NAMES
④ ubuntu:latest “/bin/bash” minutes ago Exited ( minutes ago sharp_bohr
⑤:代表容器的ID,
⑥ubuntu:latest :创建容器的镜像
⑦“/bin/bash”:容器最后执行的命令
⑧ minutes ago :创建时间
⑨Exited ( minutes:容器退出的状态
⑩sharp_bohr :容器的名称
ⅠDocker中容器的命名
ⅡDocker在创建容器时会自动为容器生成一个随机的名称。那么如果我们想在创建一个容器时指定该容器的名称可以使用如下命令:
Ⅲ[rootlocalhost ~]# docker run --name ovcer_the_container -i -t ubuntu /bin/bash
Ⅳrootcefd:/#
Ⅴ上面的命令将会创建一个名为ovcer_the_container的容器。对于一个合法的容器的名称来说只可以包括以下字符:小写字母a~z、大写字母A-Z、数字~、下划线、圆点、横线。
Ⅵ上面就是Linux使用Docker容器的方法介绍了,在使用命令创建Docker容器后,就可以使用命令对Docker容器进行命名了。