婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 在CentOS、Fedora系統中使用Docker的方法

在CentOS、Fedora系統中使用Docker的方法

熱門標簽:北京大興區地圖標注中心 荊門真人語音電話機器人哪個好 新鄉智能電話機器人有用嗎 ai外呼系統定制 AI智能語音外呼系統是什么 淮安人工外呼系統 浙江虛擬外呼系統費用 海外文化宮地圖標注 北京外呼系統官網

一、從docker官方yum源進行安裝

1、添加docker官方源

cat >/etc/yum.repos.d/docker.repo -EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF

2、安裝和啟動

#安裝
sudo yum install docker-engine
#啟動
sudo systemctl enable docker.service
#開機啟動
systemctl enable docker.service
#驗證安裝
sudo docker run hello-world

二、用腳本的方式安裝

curl -sSL https://get.docker.com/ | sh

三、非特權用戶運行 docker 命令

在 CentOS 或 Fedora 上安裝完成 Docker 后,為了能以非 root 用戶運行 docker,你需要把你自己添加進 docker 用戶組,使用如下命令:

sudo usermod -a -G docker $USER

登出,然后再登入,以使組改變生效。
這個時候,你應該可以以一個非特權用戶運行 docker 命令了。

四、使用國內源

1、安裝dao

curl -sSL https://get.daocloud.io/daomonit/install.sh | sh -s 6d3f36d42ae3f3d4237943c65c8f3e5446e49a71

2、使用dao命令

dao pull ubuntu

看起來像這樣:

➜  ~  dao pull ubuntu
Dao from DaoCloud
Initializing, Please wait a minute
Using default tag: latest
Pulling repository daocloud.io/daocloud/daocloud-toolset
aa5dc2eecd4a: Download complete
Status: Image is up to date for daocloud.io/daocloud/daocloud-toolset:latest
daocloud.io/daocloud/daocloud-toolset: this image was pulled from a legacy registry.  Important: This registry version will not be supported in future versions of docker.
Inital Success


# ----------------------------------------------------------------------------
# DaoCloud ToolBox for Docker
#
# DaoCloud, Inc. (c) 2015
#
# Fastest way to pull image from Docker Registry
# ----------------------------------------------------------------------------

Pulling repository ubuntu
Pulling ubuntu image metadata
Pulling ubuntu:latest tag metadata
0105f98ced6d: Load layer complete
66395c31eb82: Load layer complete
002fa881df8a: Load layer complete
a005e6b7dd01: Load layer complete
Loading image to docker ...

** Pull ubuntu success. **
You can find it with 'docker images ubuntu'

其他的可以參考腳本之家之前發布的文章

標簽:贛州 阿里 盤錦 亳州 安陽 梅州 蚌埠 南通

巨人網絡通訊聲明:本文標題《在CentOS、Fedora系統中使用Docker的方法》,本文關鍵詞  在,CentOS,Fedora,系統,中,使用,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《在CentOS、Fedora系統中使用Docker的方法》相關的同類信息!
  • 本頁收集關于在CentOS、Fedora系統中使用Docker的方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 淄博市| 陆良县| 银川市| 泉州市| 府谷县| 绥中县| 朝阳区| 武宣县| 兴海县| 安陆市| 东兰县| 揭阳市| 衡山县| 武义县| 古浪县| 茶陵县| 乳山市| 家居| 清水河县| 潮州市| 崇信县| 凌云县| 彰化市| 西乌珠穆沁旗| 蓬溪县| 读书| 托里县| 定边县| 尼木县| 三穗县| 富源县| 白山市| 桓仁| 高青县| 阿克苏市| 冕宁县| 雷山县| 潼关县| 天水市| 凉城县| 泰来县|