1. docker 模板

1.1. 极速安装

# 数据目录
[ ! -d /home/docker ] && mkdir /home/docker && ln -s /home/docker /var/lib/docker
# 极速安装
curl -sSL https://get.daocloud.io/docker | /bin/bash

1.2. 命令备忘

# docker run
alias dk-run="docker run --rm --privileged -v/etc/localtime:/etc/localtime -v/home:/home"

# 从Dockerfile构建
docker build -t name:ver URL/PATH
docker build -t name:ver - < 本地文件

1.3. 快速构建环境

mkdir dk-ctl && cd dk-ctl && curl -SskL https://raw.githubusercontent.com/0a0a/docker/master/usage/download-all-ctl-mk-in-cur-dir.sh | bash -

1.4. docker-compose

Copyright © book.bbxyard.com 2014-2019 all right reserved,powered by Gitbook该文件修订时间: 2019-08-01 17:41:10

results matching ""

    No results matching ""