<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Docker 安裝與卸載

      Docker卸載與安裝

      卸載舊的版本

      卸載

      yum -y remove docker-ce docker-cli-io containerd.io
      rm -rf var /var/lib/docker
      sudo yum remove docker \
                        docker-client \
                        docker-client-latest \
                        docker-common \
                        docker-latest \
                        docker-latest-logrotate \
                        docker-logrotate \
                        docker-engine
      

      安裝 yum-utils 包

      安裝yum-utils包(提供yum-config-manager實用程序)并設置穩定的存儲庫。

       sudo yum install -y yum-utils
      
      [root@localhost ~]#  sudo yum install -y yum-utils
      已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
      
      This system is not registered with an entitlement server. You can use subscription-manager to register.
      
      Determining fastest mirrors
       * base: mirrors.aliyun.com
       * extras: mirrors.aliyun.com
       * updates: mirrors.aliyun.com
      軟件包 yum-utils-1.1.31-54.el7_8.noarch 已安裝并且是最新版本
      無須任何處理
      
      

      設置存儲庫

      鑒于國內網絡問題,強烈建議使用國內源

      sudo yum-config-manager \
         --add-repo \
          https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
      

      官方源

      sudo yum-config-manager \
          --add-repo \
          https://download.docker.com/linux/centos/docker-ce.repo
      
      [root@localhost ~]# sudo yum-config-manager \
      >     --add-repo \
      >     https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
      已加載插件:fastestmirror, product-id, subscription-manager
      
      This system is not registered with an entitlement server. You can use subscription-manager to register.
      
      adding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
      grabbing file https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
      repo saved to /etc/yum.repos.d/docker-ce.repo
      
      

      安裝 docker

      安裝 docker

      sudo yum install docker-ce docker-ce-cli containerd.io
      
      [root@localhost ~]#  yum install docker-ce docker-ce-cli containerd.io
      已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
      
      This system is not registered with an entitlement server. You can use subscription-manager to register.
      
      Loading mirror speeds from cached hostfile
       * base: mirrors.aliyun.com
       * extras: mirrors.aliyun.com
       * updates: mirrors.aliyun.com
      正在解決依賴關系
      --> 正在檢查事務
      ---> 軟件包 containerd.io.x86_64.0.1.4.9-3.1.el7 將被 安裝
      ---> 軟件包 docker-ce.x86_64.3.20.10.7-3.el7 將被 安裝
      --> 正在處理依賴關系 docker-ce-rootless-extras,它被軟件包 3:docker-ce-20.10.7-3.el7.x86_64 需要
      ---> 軟件包 docker-ce-cli.x86_64.1.20.10.7-3.el7 將被 安裝
      --> 正在處理依賴關系 docker-scan-plugin(x86-64),它被軟件包 1:docker-ce-cli-20.10.7-3.el7.x86_64 需要
      --> 正在檢查事務
      ---> 軟件包 docker-ce-rootless-extras.x86_64.0.20.10.7-3.el7 將被 安裝
      ---> 軟件包 docker-scan-plugin.x86_64.0.0.8.0-3.el7 將被 安裝
      --> 解決依賴關系完成
      ……省略
      

      啟動 docker

       sudo systemctl start docker
      

      查看 docker 狀態

       sudo systemctl status docker
      

      測試 docker

      通過運行hello world映像驗證Docker引擎是否已正確安裝。如下說明安裝成功

      [root@localhost ~]# docker run  hello-world
      Unable to find image 'hello-world:latest' locally
      latest: Pulling from library/hello-world
      b8dfde127a29: Pull complete 
      Digest: sha256:df5f5184104426b65967e016ff2ac0bfcd44ad7899ca3bbcf8e44e4461491a9e
      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/
      

      開機自啟

      systemctl enable docker
      

      鏡像加速器

      請首先執行以下命令,查看是否在 docker.service 文件中配置過鏡像地址。

      systemctl cat docker | grep '\-\-registry\-mirror'
      

      如果該命令有輸出,那么請執行 $ systemctl cat docker 查看 ExecStart= 出現的位置,修改對應的文件內容去掉 --registry-mirror 參數及其值,并按接下來的步驟進行配置。

      如果以上命令沒有任何輸出,那么就可以在 /etc/docker/daemon.json 中寫入如下內容(如果文件不存在請新建該文件):

      {
        "registry-mirrors": [
          "https://hub-mirror.c.163.com",
          "https://mirror.baidubce.com"
        ]
      }
      

      注意,一定要保證該文件符合 json 規范,否則 Docker 將不能啟動。

      重啟 docker 服務

      sudo systemctl daemon-reload
      sudo systemctl restart docker
      

      參考文檔

      Docker 官方 CentOS 安裝文檔

      https://yeasy.gitbook.io/docker_practice/install/centos

      posted @ 2021-08-03 10:14  天葬  閱讀(1419)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 亚洲无人区码一二三四区| 日韩乱码卡一卡2卡三卡四| 欧美性猛交xxxx富婆| 日韩人妻精品中文字幕专区| 免费人成视频在线| 日本精品不卡一二三区| 日韩一区日韩二区日韩三区| 精品人妻无码中文字幕在线| 日本边添边摸边做边爱喷水| 国产免费视频一区二区| 浴室人妻的情欲hd三级国产| 中国熟女仑乱hd| 国产午夜福利在线机视频| 亚洲男人的天堂一区二区| 人妻av无码系列一区二区三区| 色婷婷av久久久久久久| 免费国产好深啊好涨好硬视频| 亚洲男人天堂av在线| 欧美国产日韩久久mv| 四虎在线永久免费看精品| AV无码免费不卡在线观看| 久久天堂综合亚洲伊人HD妓女| 日韩中文字幕亚洲精品 | 亚洲成人午夜排名成人午夜| 少妇性l交大片| 欧美亚洲另类制服卡通动漫| 香蕉久久精品日日躁夜夜躁夏| 成人区人妻精品一区二区| 免费无码一区无码东京热| 国产精品久久久天天影视| 国产99久久亚洲综合精品西瓜tv| 色噜噜噜亚洲男人的天堂| 一区二区三区国产亚洲网站| 九九热免费在线视频观看| 高清无码18| 久久国产自偷自偷免费一区| 无码人妻aⅴ一区二区三区蜜桃| 国产呻吟久久久久久久92| 老司机精品影院一区二区三区| 亚洲综合无码一区二区| 国产伦子沙发午休系列资源曝光|