Ubuntu上学习使用Docker的详细入门教程

6 篇文章 0 订阅
2 篇文章 0 订阅

Ubuntu上使用Docker的简易教程

原始文档:https://www.yuque.com/lart/linux/fp6cla

说在开头

在天池的比赛中涉及到了docker的使用。经过多番探究,大致搞明白了使用的基本流程。这里对于关键部分做一个简要总结和链接的跳转。

Docker是什么、有什么优点

关于Docker官方性说明网上有很多,官方文档也很详细,这里不细说。

只想说在我目前的体验中可以感受到的一点是,Docker可以打包一个完整的运行环境。这对于重现代码的使用环境来说非常有用。使用者不需要再重新配置环境,只需要直接拉取提供的镜像,或者是直接载入打包好的镜像,就可以基于该镜像创建容器运行代码了。

所以我们需要搞清楚的是这样几点:

  1. 什么是镜像(image)和容器(container)
  2. 如何获取镜像
    1. 从网络
    2. 从他人
  3. 如何使用镜像
  4. 如何使用容器
  5. 如何生成镜像
  6. 如何分享镜像

接下来从这几个方面依次介绍。
首先说明我的实验环境:

$ sudo docker --version
Docker version 19.03.6, build 369ce74a3c

什么是镜像(image)和容器(container)

官方说法:https://docs.docker.com/get-started/#images-and-containers

Fundamentally, a container is nothing but a running process, with some added encapsulation features applied to it in order to keep it isolated from the host and from other containers. One of the most important aspects of container isolation is that each container interacts with its own private filesystem; this filesystem is provided by a Docker image. An image includes everything needed to run an application - the code or binary, runtimes, dependencies, and any other filesystem objects required.

从根本上说,容器只不过是一个正在运行的进程,它还应用了一些附加的封装功能,以使其与主机和其他容器保持隔离。容器隔离的最重要方面之一是每个容器都与自己的私有文件系统进行交互;该文件系统由Docker镜像提供。镜像包含运行应用程序所需的所有内容——代码或二进制文件、运行时、依赖项以及所需的任何其他文件系统对象。

实际上在实际使用中,我们使用镜像创建容器,非常像使用一个新的系统镜像(这里的镜像包含了运行程序的所有内容)来安装系统(创建容器)。只是这里更加接近于虚拟机。对系统本身没有影响。

我觉的这句话说的很好:镜像用来创建容器,是容器的只读模板

但是容器和虚拟机还不一样,这里引用官方文档的表述:

A container runs natively on Linux and shares the kernel of the host machine with other containers. It runs a discrete process, taking no more memory than any other executable, making it lightweight.

By contrast, a virtual machine (VM) runs a full-blown “guest” operating system with virtual access to host resources through a hypervisor. In general, VMs incur a lot of overhead beyond what is being consumed by your application logic.

容器在Linux上本地运行,并与其他容器共享主机的内核。它运行一个独立的进程,占用的内存不超过任何其他可执行文件,这也使其更加轻量级。相比之下,虚拟机 (VM) 运行成熟的 “访客” 操作系统,并通过管理程序虚拟访问主机资源。通常,虚拟机会产生超出应用程序逻辑消耗的开销。

所以归根到底一句话,docker的容器更加轻便省资源。

image.png image.png

文档中给出的容器与虚拟机的结构差异

如何获取镜像

从前面的描述中我们可以了解到,使用docker的基础是,我们得有初始的镜像来作为一切的开始。主要获取镜像的方式有两种,一种是使用他人打包好,并通过网络(主要是docker官方的docker hub和一些类似的镜像托管网站)进行分享的镜像,另一种则是在本地将镜像保存为本地文件,直接使用生成的文件进行共享。后者在网络首先环境下更加方便。

从网络

这里主要可以借助于两条指令。一个是 docker pull ,另一个是 docker run

docker pull
docker pull [OPTIONS] NAME[:TAG|@DIGEST]

顾名思义,就是从仓库中拉取(pull)指定的镜像到本机。

看它的配置项,对于可选项我们暂不需要管,我们重点关注后面的 NAME 和紧跟的两个互斥的配置项。
对应于这里的三种构造指令的方式,文档中给出了几种不同的拉取方式:

  • NAME
    • docker pull ubuntu
    • 如果不指定标签,Docker Engine会使用 :latest 作为默认标签拉取镜像。
  • NAME:TAG
    • docker pull ubuntu:14.04
    • 使用标签时,可以再次 docker pull 这个镜像,以确保具有该镜像的最新版本。
    • 例如,docker pull ubuntu:14.04 将会拉取Ubuntu 14.04镜像的最新版本。
  • NAME@DIGEST
    • docker pull ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
    • 这个为我们提供了一种指定特定版本镜像的方法。
    • 为了保证后期我们仅仅使用这个版本的镜像,我们可以重新通过指定DIGEST(通过查看镜像托管网站里的镜像信息或者是之前的 pull 输出里的DIGEST信息)的方式 pull 该版本镜像。

更多详见:

docker run
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

docker run 命令首先在指定的映像上创建一个可写的容器层,然后使用指定的命令启动它。

这个实际上会自动从官方仓库中下载本地没有的镜像。更多是使用会在后面创建容器的部分介绍。

$ sudo docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE

$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete 
Digest: sha256:49a1c8800c94df04e9658809b006fd8a686cab8028d33cfba2cc049724254202
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

$ sudo docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE
hello-world                                            latest              bf756fb1ae65        7 months ago        13.3kB

从他人处

关于如何保存镜像在后面介绍,其涉及到的指令为 docker save ,这里主要讲如何加载已经导出的镜像文件。

docker load
docker load [OPTIONS]

Load an image or repository from a tar archive (even if compressed with gzip, bzip2, or xz) from a file or STDIN. It restores both images and tags.

从tar归档文件 (即使使用gzip、bzip2或xz压缩后的),从一个文件或者STDIN中,加载镜像或仓库。它可以恢复镜像和标签。

例子可见:https://docs.docker.com/engine/reference/commandline/load/#examples

如何使用镜像

单纯的使用镜像实际上就是围绕指令 docker run 来的。

首先我们通过使用 docker images 来查看本机中已经保存的镜像信息列表。

$ sudo docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE

通过运行 docker run 获取镜像并创建容器。

docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

run包含很多的参数和配置项,这里放一个我用过的最长的(这里用到了nvidia-docker:https://github.com/NVIDIA/nvidia-docker#usage):
sudo docker run --rm -it --gpus all --name test -v /home/mydataroot:/tcdata:ro nvidia/cuda:10.0-base /bin/bash

这条指令做的就是:

  • 启动Docker容器时,必须首先确定是要在后台以 “分离” 模式还是在默认前台模式下运行容器: -d ,这里没有指定 -d 则是使用默认前台模式运行。两种模式下,部分参数配置不同,这部分细节可以参考文档:https://docs.docker.com/engine/reference/run/#detached-vs-foreground
  • 使用镜像 nvidia/cuda:10.0-base 创建容器,并对容器起一个别名 test
  • 对于该容器,开启gpu支持,并且所有GPU都可用,但是前提你得装好nvidia-docker。
  • --rm 表示退出容器的时候自动移除容器,在测试环境等场景下很方便,不用再手动删除已经创建的容器了。
  • -t-i :这两个参数的作用是,为该docker创建一个伪终端,这样就可以进入到容器的交互模式。
  • 后面的 /bin/bash 的作用是表示载入容器后运行 bashdocker中必须要保持一个进程的运行,要不然整个容器启动后就会马上kill itself,这样当你使用 docker ps 查看启动的容器时,就会发现你刚刚创建的那个容器并不在已启动的容器队列中。 这个 /bin/bash 就表示启动容器后启动 bash
  • -v 表示将本地的文件夹以只读( :ro ,读写可以写为 :rw ,如果不加,则默认的方式是读写)的方式挂载到容器中的 /tcdata 目录中。
$ sudo docker run -it ubuntu bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
3ff22d22a855: Pull complete 
e7cb79d19722: Pull complete 
323d0d660b6a: Pull complete 
b7f616834fd0: Pull complete 
Digest: sha256:5d1d5407f353843ecf8b16524bc5565aa332e9e6a1297c73a92d3e754b8a636d
Status: Downloaded newer image for ubuntu:latest
root@966d5fa519a5:/# # 此时进入了基于ubuntu:latest创建的容器中。

退出容器后,查看本机的镜像信息列表和容器信息列表。

root@d9e6e9b9323a:/# exit
exit
$ sudo docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE
ubuntu                                                 latest              1e4467b07108        9 days ago          73.9M
$ sudo docker ps  # 查看正在运行的容器信息
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
$ sudo docker ps -a  # 查看所有容器信息
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES
966d5fa519a5        ubuntu              "bash"              38 seconds ago      Exited (0) 9 seconds ago                        relaxed_kirch

当我们想要删除指定的镜像的时候,我们可以使用 sudo docker rmi 来进行处理。

docker rmi [OPTIONS] IMAGE [IMAGE...]

后面可以跟多个镜像。这里支持三种方式:

  • 使用IMAGE ID:docker rmi fd484f19954f
  • 使用TAG: docker rmi test:latest
  • 使用DIGEST: docker rmi localhost:5000/test/busybox@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf

如何使用容器

创建容器

从前面可以了解到,我们可以通过使用 docker run 创建前台运行的容器,创建好了容器我们会面临如何使用的问题。

进入容器

进入容器的方法都是一致的,但是这里会面临两种情况,一种是已经退出的容器,另一种是运行在后台的分离模式下的容器。

已退出的容器
$ sudo docker run -it --gpus all --name testv3 -v /home/lart/Downloads/:/data nvidia/cuda:10.0-base bash
root@efd722f0321f:/# exit
exit
(pt16) lart@god:~/Coding/RGBSOD_MS$ sudo docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              19 seconds ago      Exited (0) 3 seconds ago                           testv3

可以看到,我这里存在一个已经退出的容器。我们想要进入退出的容器首先需要启动已经退出的容器:

(pt16) lart@god:~/Coding/RGBSOD_MS$ sudo docker start testv3
testv3
(pt16) lart@god:~/Coding/RGBSOD_MS$ sudo docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              31 seconds ago      Up 1 second                                        testv3

关于重启容器,使用 docker restart 也是可以的。为了验证,我们先使用 docker stop 停止指定容器。再进行测试。

$ sudo docker stop testv3
testv3
$ sudo docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              2 minutes ago       Exited (0) 4 seconds ago                           testv3
$ sudo docker restart testv3  # restart 不仅可以重启关掉的容器,也可以重启运行中的容器
testv3
$ sudo docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              2 minutes ago       Up 1 second                                        testv3
后台分离模式运行的容器
  • 对于创建分离模式的容器我们可以使用 docker run -d
  • 另外前面提到的 start 或者 restart 启动的容器会自动以分离模式运行
进入启动的容器

对于已经启动的容器,我们可以使用 attach 或者 exec 进入该容器,但是更推荐后者(https://www.cnblogs.com/niuben/p/11230144.html)。

$ sudo docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              16 minutes ago      Exited (0) 2 minutes ago                           testv3
$ sudo docker start testv3
testv3
$ sudo docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              16 minutes ago      Up 2 seconds                                       testv3

$ sudo docker exec -it testv3 bash
root@efd722f0321f:/# exit
exit
$ sudo docker ps -a # 可以看到exec退出后不会把容器关闭
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              17 minutes ago      Up 36 seconds                                      testv3

$ sudo docker attach testv3
root@efd722f0321f:/# exit
exit
$ sudo docker ps -a  # 可以看到attach退出后会把容器关闭
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
efd722f0321f        nvidia/cuda:10.0-base   "bash"              18 minutes ago      Exited (0) 2 seconds ago                           testv3

退出容器

$ exit

删除容器

基于指令 docker rm ,用来移除一个或者多个容器。

docker rm [OPTIONS] CONTAINER [CONTAINER...]

我们可以根据容器的ID或者名字来删除对应的运行中的或者是已经停止的容器。更多的例子可见https://docs.docker.com/engine/reference/commandline/rm/#examples

停止正在运行的容器

参考:https://blog.csdn.net/Michel4Liu/article/details/80889977

  • docker stop :此方式常常被翻译为优雅的停止容器。
    • docker stop 容器ID或容器名
    • -t :关闭容器的限时,如果超时未能关闭则用 kill 强制关闭,默认值10s,这个时间用于容器的自己保存状态, docker stop -t=60 容器ID或容器名
  • docker kill :直接关闭容器
    • docker kill 容器ID或容器名

从本机与容器中互相拷贝数据

docker cp :用于容器与主机之间的数据拷贝。

docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
  • The docker cp utility copies the contents of SRC_PATH to the DEST_PATH. You can copy from the container’s file system to the local machine or the reverse, from the local filesystem to the container.
  • If - is specified for either the SRC_PATH or DEST_PATH, you can also stream a tar archive from STDIN or to STDOUT.
  • The CONTAINER can be a running or stopped container.
  • The SRC_PATH or DEST_PATH can be a file or directory.

由于容器内的数据与容器外的数据并不共享,所以如果我们想要向其中拷贝一些数据,可以通过这个指令来进行复制。当然,另一个比较直接的想法就是通过挂载的目录进行文件共享与复制。

如何生成镜像

主要包含两种方式,一种是基于构建文件Dockerfile和 docker build 的自动构建,一种是基于 docker commit 提交对于现有容器的修改之后生成镜像。

docker build

docker build [OPTIONS] PATH | URL | -
  • The docker build command builds Docker images from a Dockerfile and a “context”. A build’s context is the set of files located in the specified PATH or URL.
  • The build process can refer to any of the files in the context. For example, your build can use a COPY instruction to reference a file in the context.

更多细节可见https://docs.docker.com/engine/reference/commandline/build/

这里用到了Dockerfile,这些参考资料不错:

对于已有的Dockerfile文件,我们可以使用如下指令生成镜像:

$ docker build -t vieux/apache:2.0 .
# 使用'.'目录下的Dockerfile文件。注意结尾的路径`.`,这里给打包的镜像指定了TAG
$ docker build -t whenry/fedora-jboss:latest -t whenry/fedora-jboss:v2.1 .
# 也可以指定多个TAG
$ docker build -f dockerfiles/Dockerfile.debug -t myapp_debug .
# 也可以不使用'.'目录下的Dockerfile文件,而是使用-f指定文件

打包完之后,我们就可以在 docker images 中看到新增的镜像了。

docker commit

docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
  • It can be useful to commit a container’s file changes or settings into a new image. This allows you to debug a container by running an interactive shell, or to export a working dataset to another server.
  • Generally, it is better to use Dockerfiles to manage your images in a documented and maintainable way. Read more about valid image names and tags.
  • The commit operation will not include any data contained in volumes mounted inside the container.
  • By default, the container being committed and its processes will be paused while the image is committed. This reduces the likelihood of encountering data corruption during the process of creating the commit. If this behavior is undesired, set the --pause option to false.

一般使用指定容器的ID就可以进行提交了。

$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS              NAMES
c3f279d17e0a        ubuntu:12.04        /bin/bash           7 days ago          Up 25 hours                            desperate_dubinsky
197387f1b436        ubuntu:12.04        /bin/bash           7 days ago          Up 25 hours                            focused_hamilton
$ docker commit c3f279d17e0a  svendowideit/testimage:version3
f5283438590d
$ docker images
REPOSITORY                        TAG                 ID                  CREATED             SIZE
svendowideit/testimage            version3            f5283438590d        16 seconds ago      335.7 MB

如何分享镜像

上传到在线存储库

本地导出分享

这里基于指令 docker save

docker save [OPTIONS] IMAGE [IMAGE...]

Produces a tarred repository to the standard output stream. Contains all parent layers, and all tags + versions, or specified repo:tag , for each argument provided.

具体的例子可见:https://docs.docker.com/engine/reference/commandline/save/#examples

$ sudo docker ps -a
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                         PORTS               NAMES
153999a1dfb2        hello-world             "/hello"            2 hours ago         Exited (0) 2 hours ago                             naughty_euler
$ sudo docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE
hello-world                                            latest              bf756fb1ae65        7 months ago        13.3kB
$ sudo docker save -o hello-world-latest.tar hello-world:latest
$ ls
hello-world-latest.tar

$ sudo docker rmi hello-world:latest
Error response from daemon: conflict: unable to remove repository reference "hello-world:latest" (must force) - container 153999a1dfb2 is using its referenced image bf756fb1ae65
$ sudo docker rmi -f hello-world:latest  # 强制删除镜像
Untagged: hello-world:latest
Untagged: hello-world@sha256:49a1c8800c94df04e9658809b006fd8a686cab8028d33cfba2cc049724254202
Deleted: sha256:bf756fb1ae65adf866bd8c456593cd24beb6a0a061dedf42b26a993176745f6b

$ sudo docker ps -a  # 课件,强制删除镜像后,原始关联的容器并不会被删除
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                   PORTS               NAMES
153999a1dfb2        bf756fb1ae65            "/hello"            5 hours ago         Exited (0) 5 hours ago                       naughty_euler
$ sudo docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE

$ sudo docker load -i hello-world-latest.tar 
Loaded image: hello-world:latest

$ sudo docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE
hello-world                                            latest              bf756fb1ae65        7 months ago        13.3kB
$ sudo docker ps -a  # 可见,当重新加载对应的镜像时,这里的IMAGE又对应了回来
CONTAINER ID        IMAGE                   COMMAND             CREATED             STATUS                   PORTS               NAMES
153999a1dfb2        hello-world             "/hello"            5 hours ago         Exited (0) 5 hours ago                       naughty_euler

这里也有个例子:

参考资料

  • 23
    点赞
  • 102
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
什么是Docker Docker 最初是dotCloud 公司创始人Solomon Hykes 在法国期间发起的一个公司内部项目, 它是基于dotCloud 公司多年云服务技术的一次革新,并于2013 年3 月以Apache 2.0 授权 协议开源,主要项目代码在GitHub 上进行维护。Docker 项目后来还加入了Linux 基金会, 并成立推动开放容器联盟(OCI)。 Docker 自开源后受到广泛的关注和讨论,至今其GitHub 项目已经超过4 万6 千个星标和一 万多个fork。甚至由于Docker 项目的火爆,在2013 年底,dotCloud 公司决定改名为 DockerDocker 最初是在Ubuntu 12.04 上开发实现的;Red Hat 则从RHEL 6.5 开始对 Docker 进行支持;Google 也在其PaaS 产品中广泛应用DockerDocker 使用Google 公司推出的Go 语言进行开发实现,基于Linux 内核的 cgroup,namespace,以及AUFS 类的Union FS 等技术,对进程进行封装隔离,属于操作 系统层面的虚拟化技术。由于隔离的进程独立于宿主和其它的隔离的进程,因此也称其为容 器。最初实现是基于LXC,从0.7 版本以后开始去除LXC,转而使用自行开发的 libcontainer,从1.11 开始,则进一步演进为使用runC 和containerd。 Docker 在容器的基础上,进行了进一步的封装,从文件系统、网络互联到进程隔离等等,极 大的简化了容器的创建和维护。使得Docker 技术比虚拟机技术更为轻便、快捷。 下面的图片比较了Docker 和传统虚拟化方式的不同之处。传统虚拟机技术是虚拟出一套硬件 后,在其上运行一个完整操作系统,在该系统上再运行所需应用进程;而容器内的应用进程 直接运行于宿主的内核,容器内没有自己的内核,而且也没有进行硬件虚拟。因此容器要比 传统虚拟机更为轻便。
Docker是一种基于容器技术的开源项目,它可以实现应用程序的快速部署和管理。Ubuntu操作系统是Docker的一种常用操作系统,这里将提供一个简单的教程,来介绍如何在Ubuntu使用Docker。 1. 安装DockerUbuntu上安装Docker非常简单,只需要在命令行中运行以下命令即可: sudo apt-get update sudo apt-get install docker.io 2. 运行Docker 安装完成后,可以使用以下命令来检查Docker是否安装成功: docker --version 如果成功安装,会输出Docker的版本号。 3. 下载Docker镜像 Docker镜像是Docker运行的基础,你可以从Docker Hub上获取相关镜像。例如,你可以使用以下命令来下载Ubuntu镜像: docker pull ubuntu 4. 运行Docker容器 下载完成后,可以使用以下命令来运行Ubuntu容器: docker run -it ubuntu /bin/bash 这个命令将会在Docker中运行一个新的Ubuntu容器,同时,在容器中启动一个命令行终端。 5. 安装应用程序 在Ubuntu容器中,你可以像在标准的Ubuntu系统中一样,安装你需要的应用程序和工具。 例如,你可以使用以下命令来安装Apache Web服务器: apt-get update apt-get install apache2 6. 运行应用程序 安装完成后,你可以使用以下命令来启动Web服务器: service apache2 start 7. 测试应用程序 在运行应用程序后,你可以使用浏览器访问Web服务器的默认页面,验证应用程序是否成功运行。 总之,Docker是一项非常有用的技术,它可以让你轻松地部署和管理应用程序。通过本文介绍的简单教程,你可以在Ubuntu中掌握Docker的基本使用方法,并开始尝试在Docker中部署和管理应用程序。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值