zoukankan      html  css  js  c++  java
  • docker rpm包安装

    此次安装docker版本为1.12.6

    1.准备安装包

    docker-engine-1.12.6-1.el7.centos.x86_64.rpm

    docker-engine-selinux-1.12.6-1.el7.centos.noarch.rpm

    2.安装

    yum install docker-engine-1.12.6-1.el7.centos.x86_64.rpm docker-engine-selinux-1.12.6-1.el7.centos.noarch.rpm -y

    我是在当前路径安装的,可以把包做成yum源方式

    3.修改docker.service

    [Unit]
    Description=Docker Application Container Engine
    Documentation=https://docs.docker.com
    After=network.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/docker daemon  --insecure-registry 0.0.0.0/0 -H unix:///var/run/docker.sock  --storage-driver=devicemapper --storage-opt=dm.thinpooldev=/dev/mapper/docker-thinpool --storage-opt=dm.use_deferred_removal=true --storage-opt=dm.use_deferred_deletion=true
    ExecReload=/bin/kill -s HUP $MAINPID
    
    # Having non-zero Limit*s causes performance problems due to accounting overhead
    # in the kernel. We recommend using cgroups to do container-local accounting.
    
    LimitNOFILE=1048576
    LimitNPROC=1048576
    LimitCORE=infinity
    Restart=always
    RestartSec=20
    Delegate=true
    
    # Uncomment TasksMax if your systemd version supports it.
    # Only systemd 226 and above support this version.
    #TasksMax=infinity
    TimeoutStartSec=0
    # set delegate yes so that systemd does not reset the cgroups of docker containers
    Delegate=yes
    # kill only the docker process, not all processes in the cgroup
    KillMode=process
    
    [Install]
    WantedBy=multi-user.target

    4.启动docker

    systemctl start docker

  • 相关阅读:
    次小生成树(SST)
    传纸条(scrip)
    动态规划练习5
    动态规划练习4
    整数的lqp拆分
    [HNOI2002]跳蚤
    BZOJ1803: Spoj1487 Query on a tree III
    51nod-1526: 分配笔名
    51nod-1615: 跳跃的杰克
    BZOJ2588: Spoj 10628. Count on a tree
  • 原文地址:https://www.cnblogs.com/brownyangyang/p/9209786.html
Copyright © 2011-2022 走看看