1.公升級系統並重啟
yum update -y && reboot
# 安裝docker最新版
yum install -y yum-utils
yum-config-manager --add-repo
yum install -y docker-ce
網路環境的配置(docker,yum和/etc/profile)
# 設定統一時間
timedatectl set-ntp no
timedatectl set-time '2020-08-05 11:58:08'
# docker基礎配置
mkdir /data/docker
10.11.0.208
[root@server03 ~]# cat /etc/docker/daemon.json
"graph": "/data/docker",
"storage-driver": "overlay2",
"insecure-registries": ["registry.access.redhat.com","quay.io","harbor.chinasoft.com"],
"registry-mirrors": [""],
"bip": "172.7.208.1/24",
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true
10.11.0.209
[root@server04 ~]# cat /etc/docker/daemon.json
"graph": "/data/docker",
"storage-driver": "overlay2",
"insecure-registries": ["registry.access.redhat.com","quay.io","harbor.chinasoft.com"],
"registry-mirrors": [""],
"bip": "172.7.209.1/24",
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true
10.11.0.210
[root@server05 ~]# cat /etc/docker/daemon.json
"graph": "/data/docker",
"storage-driver": "overlay2",
"insecure-registries": ["registry.access.redhat.com","quay.io","harbor.chinasoft.com"],
"registry-mirrors": [""],
"bip": "172.7.210.1/24",
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true
映象儲存的地方也可以這麼配置
# more /etc/docker/daemon.json
}私有映象倉庫部署
wget
tar xf harbor-offline-installer-v1.8.3.tgz -c /usr/local/
cd /usr/local/
mv harbor harbor-v1.8.3
# 生成軟連線,方便公升級
ln -s harbor-v1.8.3 harbor
配置
安裝依賴
# yum install docker-compose -y
修改配置
執行安裝
安裝nginx作為harbor的前端反向**
# yum install -y nginx
[root@server05 ~]# cat /etc/nginx/conf.d/harbor.chinasoft.com.conf
server {
listen 80;
server_name harbor.chinasoft.com;
client_max_body_size 1000m;
location / {
proxy_pass
# 啟動nginx
[root@server05 ~]# systemctl start nginx
[root@server05 ~]# systemctl enable nginx
# 新增內部dns解析server01:10.11.0.206
注意修改serial
登入admin/harbor123456
基於jQuery實現蘋果Dock樣式的選單
愛程式設計小編之前我們分享過相當數量的jquery選單了,今天要給大家帶來一款dock樣式的jquery選單,用過蘋果的朋友都知道,它的dock選單非常酷,配合漂亮的圖示就更加絢麗了。效果圖如下 實現的 html div id img src images 1.png width 64 img sr...
在linux建立docker,執行docker容器
安裝 1.依次執行以下命令新增yum源。yum update yum install epel release y yum clean all yum list2.安裝並執行docker。yum install docker io y systemctl start docker3.檢查安裝結果.d...
Docker建立映象 並推拉Harbor
建立映象 一 根據dockerfile建立映象 檔案詳解 1 mkdir dockerfile lib centos7base 建立目錄 2 建立dockerfile 3 構建映象 docker build t wyxcentos7 過程解析 docker映象是唯讀的,這裡為什麼能夠在centos映...