zoukankan      html  css  js  c++  java
  • centos7安装docker

    官网文档:https://docs.docker.com/install/linux/docker-ce/centos/

    1、Uninstall old versions

    $ sudo yum remove docker
                      docker-client
                      docker-client-latest
                      docker-common
                      docker-latest
                      docker-latest-logrotate
                      docker-logrotate
                      docker-engine

    2、Install using the repository

    Install required packages.

    $ sudo yum install -y yum-utils
      device-mapper-persistent-data
      lvm2

    Use the following command to set up the stable repository

    $ sudo yum-config-manager
        --add-repo
        https://download.docker.com/linux/centos/docker-ce.repo

    Install Docker CE

    $ sudo yum install docker-ce

    Start Docker.

    $ sudo systemctl start docker

    Verify that docker is installed correctly by running the hello-world image.

    $ sudo docker run hello-world

    配置加速

    Linux

    curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io

    该脚本可以将 --registry-mirror 加入到你的 Docker 配置文件 /etc/docker/daemon.json 中。适用于 Ubuntu14.04、Debian、CentOS6 、CentOS7、Fedora、Arch Linux、openSUSE Leap 42.1,其他版本可能有细微不同。更多详情请访问文档。

  • 相关阅读:
    thymeleaf时间戳转换
    alerttemplate 时间戳转换
    jQuery.Deferred exception: a.indexOf is not a function TypeError: a.indexOf is not a function
    区分数据是对象还是字符串
    eclipse中选取一列快捷键
    图片拉伸不变型
    这里ajax需要改成同步
    idea如何整理代码格式
    20170311-起早床
    20190310-解决头屑
  • 原文地址:https://www.cnblogs.com/hougang/p/10305046.html
Copyright © 2011-2022 走看看