バイナリインストール]ドッキングウィンドウを使用してCentos7.6

ドッカー2つのシステムファイル格納ディレクトリを作成します

mkdir /opt/kube/bin/ -pv
# ll
total 155108
-rwxr-xr-x 1 root root 37598450 Sep 19 11:10 docker
-rwxr-xr-x 1 root root 11748168 Sep 19 11:13 docker-compose
-rwxr-xr-x 1 root root 26393752 Sep 19 11:13 docker-containerd
-rwxr-xr-x 1 root root 14725592 Sep 19 11:13 docker-containerd-ctr
-rwxr-xr-x 1 root root  4173632 Sep 19 11:13 docker-containerd-shim
-rwxr-xr-x 1 root root 53076360 Sep 19 11:11 dockerd
-rwxr-xr-x 1 root root   764144 Sep 19 11:13 docker-init
-rwxr-xr-x 1 root root  2837280 Sep 19 11:13 docker-proxy
-rwxr-xr-x 1 root root  7495056 Sep 19 11:13 docker-runc

スタートアップファイルを設定します

# vim /etc/systemd/system/docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io

[Service]
Environment="PATH=/opt/kube/bin:/bin:/sbin:/usr/bin:/usr/sbin"
ExecStart=/opt/kube/bin/dockerd 
ExecStartPost=/sbin/iptables -I FORWARD -s 0.0.0.0/0 -j ACCEPT
ExecReload=/bin/kill -s HUP $MAINPID
Restart=always
RestartSec=5
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
Delegate=yes
KillMode=process

[Install]
WantedBy=multi-user.target

ドッカーサービスを開始し、ブートを設定

sudoはドッキングウィンドウの開始systemctl
ドッキングウィンドウを有効systemctl sudoを

APPUSER権限を追加
須藤は、usermod -a -GドッカーAPPUSER
sudoのsystemctl-デーモンリロード
須藤systemctlドッカー再起動
は、newgrpドッカー 

おすすめ

転載: blog.51cto.com/10880347/2439219