huhahapz 发表于 2019-2-21 12:23:46

Docker学习中的一些资料整理

  

Docker的全生命周期文档总结

docker link

  部分文档有对应官方的中文翻译,可以从 https://docs.docker-cn.com 查看。但是一定要注意代码格式,中文文档中许多格式是错误的,应该对比英文文档中的代码来看


Docker Docs for Beginner


[*](英文):https://docs.docker.com/get-started/
[*](中文):https://docs.docker-cn.com/get-started/
[*](老麦的翻译):https://docs-cn.docker.octowhale.com/get_started/001.Orientation.html
[*]Docker 课程:http://training.play-with-docker.com/

[*]运维人员课程:http://training.play-with-docker.com/ops-landing/
[*]开发人员课程:http://training.play-with-docker.com/dev-landing/

[*]大量的例子:

[*](英文):https://docs.docker.com/samples/
[*](中文):https://docs.docker-cn.com/samples/

[*]用户文档:

[*](英文):https://docs.docker.com/engine/userguide/
[*](中文):https://docs.docker-cn.com/engine/userguide/
[*]镜像:

[*](英文):https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
[*](老麦的翻译):https://docs-cn.docker.octowhale.com/engine/userguide/eng-image/dockerfile_best-practices.html

[*]存储:https://docs.docker.com/engine/userguide/storagedriver/
[*]网络:https://docs.docker.com/engine/userguide/networking/

[*]管理文档:https://docs.docker.com/engine/admin/

[*]存储:https://docs.docker.com/engine/admin/volumes/

[*]Docker 官方博客:http://blog.docker.com/
[*]Docker Hub: https://hub.docker.com/@特别是官方(Official)的镜像可以直接在生产环境中使用
[*]Docker论坛: https://forums.docker.com
[*]Docker中文社区:http://www.docker.org.cn
[*]Docker中文官网: https://www.docker-cn.com/
[*]老麦翻译的Docker中文手册: https://docs-cn.docker.octowhale.com/
[*]一小时Docker教程 :https://blog.csphere.cn/archives/22
[*]docker从入门到实践:http://dockerpool.com/static/books/docker_practice/index.html
[*]Docker阶段性学习任务[有意思]:http://training.play-with-docker.com/alacart/
[*]Docker版本改进的中文日志: https://github.com/allencloud/docker-changelog-chinese

Docker Details Part


[*]安全:https://docs.docker.com/engine/security/security/
[*]集群:https://docs.docker.com/engine/swarm/
[*]Docker commandline: https://docs.docker.com/engine/reference/commandline/docker/
[*]Docker daemon.json setting: https://docs.docker.com/engine/reference/commandline/dockerd//#daemon-configuration-file
[*]Docker log driver: https://docs.docker.com/engine/admin/logging/overview/#supported-logging-drivers
[*]容器磁盘等参数问题: https://docs.docker.com/engine/reference/commandline/run/#/set-storage-driver-options-per-container
[*]Docker admin:

[*]重启服务如何不影响docker container: https://docs.docker.com/engine/admin/live-restore/
[*]docker configurefile setting: https://docs.docker.com/engine/admin/configuring/#ubuntu
[*]docker configurefile systemd manage : https://docs.docker.com/engine/admin/systemd/

[*]Docker volume plugin: https://docs.docker.com/engine/extend/legacy_plugins/#/volume-plugins

install docker
  这里面需要注意的是,在参考官方安装文档 (中文)配置 Linux 源的时候,如果是国内服务器,要将其中的 https://download.docker.com/linux/ 替换为 https://mirrors.aliyun.com/docker-ce/linux/
  例如,官网要求安装命令为

$ sudo add-apt-repository \
"deb https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
  替换为从阿里云上下载,不需要×××下载了:

$ sudo add-apt-repository \
"deb https://mirrors.aliyun.com/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
  17.04以后的版本可以使用以下方式安装:

export CHANNEL=stable#
curl -fsSL https://get.docker.com/ | sh -s -- --mirror Aliyun
加速器


[*]Docker官方的中国加速器: https://www.docker-cn.com/registry-mirror

[*]加速器地址: https://registry.docker-cn.com

[*]中国科技大学的镜像加速器:http://mirrors.ustc.edu.cn/help/dockerhub.html?highlight=docker

[*]加速器地址:https://docker.mirrors.ustc.edu.cn/

[*]阿里云加速器:免费注册开发账户,访问https://cr.console.aliyun.com/#/accelerator
[*]DaoCloud加速器: 免费注册然后访问https://www.daocloud.io/mirror#accelerator-doc
  ubuntu14.04配置加速器
ubuntu14根据upstart进行系统初始化,对于这类系统,可以用通过编辑配置文件的方法来配置加速器

vim /etc/default/docker
DOCKER_OPTS="--registry-mirror=https://registry.docker-cn.com"
systemctl restart docker.service
  ubuntu16.04/Centos 7配置加速器
这类系统都已经开始使用 systemd 进行系统初始化管理了,对于使用systemd的系统,应该通过编辑服务配置文件 docker.service 来进行加速器的配置

systemctl enable docker.service#首先执行,要保证service的服务配置文件存在
sudo vi /etc/systemd/system/multi-user.target.wants/docker.service
ExecStart=/usr/bin/dockerd --registry-mirror=https://registry.docker-cn.com
sudo systemctl daemon-reload
sudo systemctl restart docker.service
sudo ps -ef | grep dockerd
docker info #查看加速器配置是否成功
  执行Docker命令没有权限

sudo usermod -aG docker $USER
Configure the local official docker docs by docker container

# Docker官方文档
docker run -d -p 80:4000 docs/docker.github.io
The security of docker


[*]配置docker的tls: https://docs.docker.com/engine/security/https/
[*]docker-machine: https://docs.docker.com/machine/overview/

Docker API


[*]docker api: https://docs.docker.com/engine/api/v1.37/

Docker Vedio


[*]  Docker官方频道的视频讲座: https://www.youtube.com/user/dockerrun

[*]cadvisor+influxdb+grafana,how to setup docker monitoring
[*]Prometheus
[*]监控参考文章: http://www.docker.org.cn/docker/65.html



页: [1]
查看完整版本: Docker学习中的一些资料整理