• Centos7安装docker


    参考 http://www.linuxidc.com/Linux/2014-12/110034.htm

    安装

    yum -y install docker

    [root@localhost ~]# docker version
    Client:
    Version: 1.12.6
    API version: 1.24
    Package version: docker-1.12.6-55.gitc4618fb.el7.centos.x86_64
    Go version: go1.8.3
    Git commit: c4618fb/1.12.6
    Built: Thu Sep 21 22:33:52 2017
    OS/Arch: linux/amd64
    Cannot connect to the Docker daemon. Is the docker daemon running on this host?   (没启动导致)

    启动

    systemctl start docker.service

    systemctl enable docker.service

    [root@localhost ~]# docker info
    Containers: 0
    Running: 0
    Paused: 0
    Stopped: 0
    Images: 0
    Server Version: 1.12.6
    Storage Driver: devicemapper
    Pool Name: docker-8:3-101859532-pool
    Pool Blocksize: 65.54 kB
    Base Device Size: 10.74 GB
    Backing Filesystem: xfs
    Data file: /dev/loop0
    Metadata file: /dev/loop1
    Data Space Used: 11.8 MB
    Data Space Total: 107.4 GB
    Data Space Available: 47.25 GB
    Metadata Space Used: 581.6 kB
    Metadata Space Total: 2.147 GB
    Metadata Space Available: 2.147 GB
    Thin Pool Minimum Free Space: 10.74 GB
    Udev Sync Supported: true
    Deferred Removal Enabled: true
    Deferred Deletion Enabled: true
    Deferred Deleted Device Count: 0
    Data loop file: /var/lib/docker/devicemapper/devicemapper/data
    WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
    Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
    Library Version: 1.02.140-RHEL7 (2017-05-03)
    Logging Driver: journald
    Cgroup Driver: systemd
    Plugins:
    Volume: local
    Network: null host bridge overlay
    Swarm: inactive
    Runtimes: docker-runc runc
    Default Runtime: docker-runc
    Security Options: seccomp selinux
    Kernel Version: 3.10.0-693.el7.x86_64
    Operating System: CentOS Linux 7 (Core)
    OSType: linux
    Architecture: x86_64
    Number of Docker Hooks: 3
    CPUs: 1
    Total Memory: 976.3 MiB
    Name: localhost.localdomain
    ID: B2TQ:UDTK:F4S4:PI6Z:FWWW:UWZE:KN6W:XE52:3HXY:74GV:SZIR:GJWW
    Docker Root Dir: /var/lib/docker
    Debug Mode (client): false
    Debug Mode (server): false
    Registry: https://index.docker.io/v1/
    Insecure Registries:
    127.0.0.0/8
    Registries: docker.io (secure)

    下载centos

    docker pull docker.io/centos

    确认以下载的镜像

    docker images centos

  • 相关阅读:
    JavaScript 类型转换 Type Convertion
    JavaScript 对象 Object
    Git失误操作导致文件冲突、路径错误
    Swift 3.0统计缓存并清理-----(斯威夫特3.0 坑爹之获取文件大小)
    iOS ——屏幕截图
    iOS 控件设置虚线
    Swift_单例的打开方式
    第三方接入小记
    图片自定义圆角
    自定义搜索框-输入框光标不贴边
  • 原文地址:https://www.cnblogs.com/hanxing/p/7806156.html
Copyright © 2020-2023  润新知