Docker Linux 安装(基于Debain内核)
Docker Linux 安装(基于Debain内核)
ldfowjemr 发表于3年前
Docker Linux 安装(基于Debain内核)
  • 发表于 3年前
  • 阅读 17
  • 收藏 0
  • 点赞 0
  • 评论 0

移动开发云端新模式探索实践 >>>   

#Install Docker

  1. Log into your Ubuntu installation as a user with sudo privileges.

  2. Verify that you have wget installed.

    $ which wget If wget isn’t installed, install it after updating your manager:

    $ sudo apt-get update $ sudo apt-get install wget

  3. Get the latest Docker package.
    $ wget -qO- | sh

The system prompts you for your sudo password. Then, it downloads and installs Docker and its dependencies.

Note: If your company is behind a filtering proxy, you may find that the apt-key command fails for the Docker repo during installation. To work around this, add the key directly using the following: $ wget -qO- | sudo apt-key add -

  1. Verify docker is installed correctly.

    $ docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    535020c3e8ad: Pull complete
    af340544ed62: Pull complete
    Digest: sha256:a68868bfe696c00866942e8f5ca39e3e31b79c1e50feaee4ce5e28df2f051d5c 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.
    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 Hub account:

    For more examples and ideas, visit:

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

    For more examples and ideas, visit:

  • 打赏
  • 点赞
  • 收藏
  • 分享
共有 人打赏支持
粉丝 7
博文 37
码字总数 10600
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
* 支付类型