zoukankan      html  css  js  c++  java
  • Centos7 Docker安装部署

    1、系统环境:centos7版本

    [root@panfeng ~]# cat /etc/redhat-release 
     CentOS Linux release 7.5.1804 (Core) 
    [root@panfeng ~]#

    2、内核版本:

    [root@panfeng ~]# uname -r
    3.10.0-862.el7.x86_64
    [root@panfeng ~]#

    3、关闭selinux

    [root@panfeng ~]# getenforce 
    Permissive
    [root@panfeng ~]# 
        临时关闭selinux
            [root@panfeng ~]# setenforce 0
            [root@panfeng ~]# getenforce 
            Permissive
            [root@panfeng ~]# 
        永久关不selinux 
            1、执行临时关闭selinux
            2、修改selinux配置文件
            [root@panfeng ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g'  /etc/sysconfig/selinux

    4、centos7关闭防火墙

    [root@panfeng ~]# systemctl stop firewalld
    移除开机自启动
    [root@panfeng ~]# systemctl disable firewalld
    Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
    Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
    [root@panfeng ~]#

    5、安装docker-ce

    yum install -y yum-utils device-mapper-persistent-data lvm2
    yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    yum -y install docker-ce
    service docker start 或者  systemctl start docker
    docker-ce开机自启动    
        systemctl enable docker
    docker版本查看
            [root@panfeng ~]# docker version
            Client:
            Version:           18.06.0-ce        当前版本18
            API version:       1.38
            Go version:        go1.10.3
            Git commit:        0ffa825
            Built:             Wed Jul 18 19:08:18 2018
            OS/Arch:           linux/amd64
            Experimental:      false
            
            Server:
            Engine:
            Version:          18.06.0-ce
            API version:      1.38 (minimum version 1.12)
            Go version:       go1.10.3
            Git commit:       0ffa825
            Built:            Wed Jul 18 19:10:42 2018
            OS/Arch:          linux/amd64
            Experimental:     false
    [root@panfeng ~]#
  • 相关阅读:
    POJ 2236 Wireless Network(并查集)
    POJ 2010 Moo University
    POJ 3614 Sunscreen(贪心,区间单点匹配)
    POJ 2184 Cow Exhibition(背包)
    POJ 1631 Bridging signals(LIS的等价表述)
    POJ 3181 Dollar Dayz(递推,两个long long)
    POJ 3046 Ant Counting(递推,和号优化)
    POJ 3280 Cheapest Palindrome(区间dp)
    POJ 3616 Milking Time(dp)
    POJ 2385 Apple Catching(01背包)
  • 原文地址:https://www.cnblogs.com/alber/p/9494973.html
Copyright © 2011-2022 走看看