• docker 安装


    sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
    [dockerrepo]
    name=Docker Repository
    baseurl=https://yum.dockerproject.org/repo/main/centos/7/
    enabled=1
    gpgcheck=1
    gpgkey=https://yum.dockerproject.org/gpg
    EOF

    sudo yum install docker-engine

    curl -L https://github.com/docker/compose/releases/download/1.8.1/run.sh > /usr/local/bin/docker-compose

    chmod +x /usr/local/bin/docker-compose

    sudo systemctl enable docker.service

    systemctl start docker

    docker-compose --version

    docker load < nginx.tar


    docker-compose.yml

    version: '2'
    services:
    nginx:
    restart: always
    image: nginx:1.11.1-alpine
    volumes:
    - /data:/data
    - /data/app/nginx:/etc/nginx
    ports:
    - "80:80"
    - "82:82"
    - "8181:81"
    php7:
    restart: always
    image: php7worker:latest
    ports:
    - "9100:9000"
    volumes:
    - /data/app/php7:/etc/php7
    - /etc/localtime:/etc/localtime
    - /data:/data

  • 相关阅读:
    6、函数、谓词、CASE表达式
    25. k个一组翻转链表
    78. 子集
    72. 编辑距离
    12. 整数转罗马数字
    287. 寻找重复数
    27. 移除元素
    91. 解码方法
    283. 移动零
    198. 打家劫舍
  • 原文地址:https://www.cnblogs.com/lglblogadd/p/9166007.html
Copyright © 2020-2023  润新知