将docker信息复制到/usr/bin目录下
cp -r docker* /usr/bin/
#ll /usr/bin/docker*
-rwxrwxrwx. 1 root root 38442504 Mar 17 02:16 /usr/bin/docker
-rwxrwxrwx. 1 root root 71297680 Mar 17 02:16 /usr/bin/dockerd
-rwxrwxrwx. 1 root root 708448 Mar 17 02:16 /usr/bin/docker-init
-rwxrwxrwx. 1 root root 1979949 Mar 17 02:16 /usr/bin/docker-proxy
配置docker.service
# cat /etc/systemd/system/docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd --selinux-enabled=false
ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes per

最低0.47元/天 解锁文章
7682

被折叠的 条评论
为什么被折叠?



