2019-10-29 06:31:45 +00:00
|
|
|
module.exports = {
|
|
|
|
title: 'Docker 从入门到实践',
|
|
|
|
base: '/',
|
2019-12-09 05:40:10 +00:00
|
|
|
head: [['script', {}, `
|
|
|
|
var _hmt = _hmt || [];
|
|
|
|
(function() {
|
|
|
|
var hm = document.createElement("script");
|
|
|
|
hm.src = "//hm.baidu.com/hm.js?81a3490c9cd141dbcf6d00bc18b6edae";
|
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
|
})();
|
|
|
|
`],
|
|
|
|
[
|
|
|
|
'script', {}, `
|
|
|
|
(function(){
|
|
|
|
var bp = document.createElement('script');
|
|
|
|
var curProtocol = window.location.protocol.split(':')[0];
|
|
|
|
if (curProtocol === 'https') {
|
|
|
|
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
|
|
|
}
|
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
|
s.parentNode.insertBefore(bp, s);
|
|
|
|
})();
|
|
|
|
`
|
|
|
|
]
|
|
|
|
],
|
|
|
|
plugins: {
|
|
|
|
sitemap: {
|
|
|
|
hostname: 'https://vuepress.mirror.docker-practice.com'
|
|
|
|
},
|
|
|
|
},
|
2019-10-29 06:31:45 +00:00
|
|
|
themeConfig: {
|
|
|
|
docsRepo: 'yeasy/docker_practice',
|
2019-11-29 15:16:18 +00:00
|
|
|
docsDir: '/',
|
2019-10-29 06:31:45 +00:00
|
|
|
editLinks: true,
|
|
|
|
nav: [{
|
2019-12-09 05:40:10 +00:00
|
|
|
text: '安装 Docker',
|
|
|
|
link: '/install/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Docker 入门',
|
|
|
|
link: '/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Docker 实战',
|
|
|
|
link: '/cases/os/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'CI/CD',
|
|
|
|
link: '/cases/ci/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Docker 仓库',
|
|
|
|
link: '/repository/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: '底层实现',
|
|
|
|
link: '/underly/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Compose',
|
|
|
|
link: '/compose/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Kubernetes',
|
|
|
|
link: '/kubernetes/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "云计算",
|
|
|
|
link: "/cloud/",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'GitHub',
|
|
|
|
link: 'https://github.com/yeasy/docker_practice'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// text: '捐赠',
|
|
|
|
// link: ''
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
text: '腾讯云容器服务',
|
|
|
|
link: 'https://cloud.tencent.com/redirect.php?redirect=10058&cps_key=3a5255852d5db99dcd5da4c72f05df61'
|
|
|
|
},
|
2019-10-29 06:31:45 +00:00
|
|
|
// {
|
|
|
|
// text: '语言',
|
|
|
|
// items: [{
|
|
|
|
// text: 'English',
|
|
|
|
// link: ''
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
],
|
|
|
|
sidebar: {
|
2019-11-05 15:35:43 +00:00
|
|
|
'/cloud/': [
|
|
|
|
'intro',
|
|
|
|
'tencentCloud',
|
|
|
|
'alicloud',
|
2019-12-09 13:00:18 +00:00
|
|
|
'aws',
|
2019-11-05 15:35:43 +00:00
|
|
|
'summary',
|
|
|
|
],
|
2019-10-29 06:31:45 +00:00
|
|
|
'/kubernetes/': [
|
|
|
|
'intro',
|
|
|
|
'concepts',
|
|
|
|
'design',
|
2019-11-15 03:01:25 +00:00
|
|
|
{
|
|
|
|
title: "部署 Kubernetes",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
"setup/",
|
2019-12-31 12:26:22 +00:00
|
|
|
"setup/kubeadm",
|
2019-12-09 04:21:52 +00:00
|
|
|
"setup/docker-desktop",
|
2019-12-31 12:26:22 +00:00
|
|
|
"setup/systemd",
|
2020-01-09 08:57:38 +00:00
|
|
|
"setup/dashboard",
|
2019-11-15 03:01:25 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Kubernetes 命令行 kubectl",
|
2019-12-09 05:40:10 +00:00
|
|
|
collapsable: false,
|
2019-11-15 03:01:25 +00:00
|
|
|
children: [
|
|
|
|
'kubectl/'
|
|
|
|
]
|
|
|
|
}
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
'/compose/': [
|
|
|
|
'introduction',
|
|
|
|
'install',
|
|
|
|
'usage',
|
|
|
|
'commands',
|
|
|
|
'compose_file',
|
|
|
|
'django',
|
|
|
|
'rails',
|
|
|
|
'wordpress',
|
2020-01-09 09:08:35 +00:00
|
|
|
'lnmp',
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
'/install/': [
|
2019-12-09 05:40:10 +00:00
|
|
|
'ubuntu',
|
|
|
|
'debian',
|
|
|
|
'fedora',
|
|
|
|
'centos',
|
|
|
|
'raspberry-pi',
|
|
|
|
'mac',
|
|
|
|
'windows',
|
|
|
|
'mirror',
|
|
|
|
'experimental',
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
'/underly/': [
|
2019-12-09 05:40:10 +00:00
|
|
|
'arch',
|
|
|
|
'namespace',
|
|
|
|
'cgroups',
|
|
|
|
'ufs',
|
|
|
|
'container_format',
|
|
|
|
'network',
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
'/repository/': [
|
|
|
|
'dockerhub',
|
|
|
|
'registry',
|
|
|
|
'registry_auth',
|
|
|
|
'nexus3_registry',
|
|
|
|
],
|
|
|
|
'/cases/os/': [
|
|
|
|
{
|
|
|
|
title: "操作系统",
|
2019-12-09 05:40:10 +00:00
|
|
|
collapsable: false,
|
2019-10-29 06:31:45 +00:00
|
|
|
children: [
|
|
|
|
'busybox',
|
|
|
|
'alpine',
|
|
|
|
'debian',
|
|
|
|
'centos',
|
|
|
|
'summary',
|
|
|
|
],
|
|
|
|
},
|
2019-11-05 14:19:50 +00:00
|
|
|
{
|
|
|
|
title: "在 IDE 中使用 Docker",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
2019-11-05 15:35:43 +00:00
|
|
|
'/IDE/',
|
|
|
|
'/IDE/vsCode',
|
2019-11-05 14:19:50 +00:00
|
|
|
],
|
|
|
|
},
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
'/cases/ci/': [
|
2019-11-05 15:35:43 +00:00
|
|
|
'actions/',
|
2019-10-29 06:31:45 +00:00
|
|
|
{
|
|
|
|
title: "Drone",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
'drone/',
|
|
|
|
'drone/install'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
'travis/'
|
|
|
|
],
|
|
|
|
'/': [
|
|
|
|
'/',
|
|
|
|
'/CHANGELOG',
|
|
|
|
'/CONTRIBUTING',
|
2019-12-09 05:40:10 +00:00
|
|
|
{
|
2019-10-29 06:31:45 +00:00
|
|
|
title: "Docker 简介",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
2019-11-05 15:35:43 +00:00
|
|
|
'introduction/',
|
|
|
|
'introduction/what',
|
|
|
|
'introduction/why',
|
2019-10-29 06:31:45 +00:00
|
|
|
]
|
2019-12-09 05:40:10 +00:00
|
|
|
}, {
|
2019-10-29 06:31:45 +00:00
|
|
|
title: "基本概念",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
2019-11-05 15:35:43 +00:00
|
|
|
'basic_concept/',
|
|
|
|
'basic_concept/image',
|
|
|
|
'basic_concept/container',
|
|
|
|
'basic_concept/repository'
|
2019-10-29 06:31:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "使用镜像",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
2019-11-05 15:35:43 +00:00
|
|
|
'image/',
|
|
|
|
'image/pull',
|
|
|
|
'image/list',
|
|
|
|
'image/rm',
|
|
|
|
'image/commit',
|
|
|
|
'image/build',
|
|
|
|
'image/other.md',
|
|
|
|
'image/internal.md',
|
2019-10-29 06:31:45 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Dockerfile',
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
2019-11-05 15:35:43 +00:00
|
|
|
"image/dockerfile/",
|
|
|
|
'image/dockerfile/copy',
|
|
|
|
'image/dockerfile/add',
|
|
|
|
'image/dockerfile/cmd',
|
|
|
|
'image/dockerfile/entrypoint',
|
|
|
|
'image/dockerfile/env',
|
|
|
|
'image/dockerfile/arg',
|
|
|
|
'image/dockerfile/volume',
|
|
|
|
'image/dockerfile/expose',
|
|
|
|
'image/dockerfile/workdir',
|
|
|
|
'image/dockerfile/user',
|
|
|
|
'image/dockerfile/healthcheck',
|
|
|
|
'image/dockerfile/onbuild',
|
|
|
|
'image/dockerfile/references',
|
|
|
|
'image/multistage-builds/',
|
|
|
|
'image/multistage-builds/laravel',
|
|
|
|
'image/manifest',
|
2019-10-29 06:31:45 +00:00
|
|
|
]
|
2019-12-09 05:40:10 +00:00
|
|
|
}, {
|
2019-10-29 06:31:45 +00:00
|
|
|
title: "操作容器",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
'container/',
|
|
|
|
'container/run',
|
|
|
|
'container/daemon',
|
|
|
|
'container/stop',
|
|
|
|
'container/attach_exec',
|
|
|
|
'container/import_export',
|
|
|
|
'container/rm',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "数据管理",
|
2019-12-09 05:40:10 +00:00
|
|
|
collapsable: false,
|
2019-10-29 06:31:45 +00:00
|
|
|
children: [
|
|
|
|
'data_management/',
|
|
|
|
'data_management/volume',
|
|
|
|
'data_management/bind-mounts',
|
|
|
|
],
|
2019-12-09 05:40:10 +00:00
|
|
|
}, {
|
|
|
|
title: "使用网络",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
'network/',
|
|
|
|
'network/port_mapping',
|
|
|
|
'network/linking',
|
|
|
|
'network/dns',
|
|
|
|
],
|
2019-10-29 06:31:45 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "高级网络配置",
|
2019-12-09 05:40:10 +00:00
|
|
|
collapsable: false,
|
2019-10-29 06:31:45 +00:00
|
|
|
children: [
|
|
|
|
'advanced_network/',
|
|
|
|
'advanced_network/quick_guide',
|
|
|
|
'advanced_network/access_control',
|
|
|
|
'advanced_network/port_mapping',
|
|
|
|
'advanced_network/bridge',
|
|
|
|
'advanced_network/example',
|
|
|
|
'advanced_network/config_file',
|
|
|
|
'advanced_network/ptp',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Swarm mode",
|
2019-12-09 05:40:10 +00:00
|
|
|
collapsable: false,
|
2019-10-29 06:31:45 +00:00
|
|
|
children: [
|
|
|
|
'swarm_mode/',
|
|
|
|
'swarm_mode/overview',
|
|
|
|
'swarm_mode/create',
|
|
|
|
'swarm_mode/deploy',
|
|
|
|
'swarm_mode/stack',
|
|
|
|
'swarm_mode/secret',
|
|
|
|
'swarm_mode/config',
|
|
|
|
'swarm_mode/rolling_update',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "安全",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
'security/',
|
|
|
|
'security/kernel_ns',
|
|
|
|
'security/control_group',
|
|
|
|
'security/daemon_sec',
|
|
|
|
'security/kernel_capability',
|
|
|
|
'security/other_feature',
|
|
|
|
'security/summary',
|
|
|
|
],
|
|
|
|
},
|
2019-11-05 13:50:05 +00:00
|
|
|
{
|
|
|
|
title: "Docker Buildx",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
"buildx/",
|
|
|
|
"buildx/buildkit",
|
|
|
|
"buildx/buildx",
|
|
|
|
"buildx/multi-arch-images",
|
|
|
|
],
|
|
|
|
},
|
2019-10-29 06:31:45 +00:00
|
|
|
{
|
|
|
|
title: "Etcd",
|
2019-12-09 05:40:10 +00:00
|
|
|
collapsable: false,
|
2019-10-29 06:31:45 +00:00
|
|
|
children: [
|
|
|
|
'etcd/',
|
|
|
|
'etcd/intro',
|
|
|
|
'etcd/install',
|
|
|
|
'etcd/cluster',
|
|
|
|
'etcd/etcdctl',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Fedora CoreOS",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
'coreos/',
|
|
|
|
'coreos/intro',
|
2020-02-01 02:24:29 +00:00
|
|
|
'coreos/install',
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Docker 开源项目",
|
2019-12-09 05:40:10 +00:00
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
'opensource/',
|
|
|
|
'opensource/linuxkit',
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
},
|
2019-12-31 12:48:52 +00:00
|
|
|
'podman/',
|
2019-11-06 06:53:09 +00:00
|
|
|
'appendix/faq/',
|
2019-10-29 06:31:45 +00:00
|
|
|
{
|
2019-11-06 06:53:09 +00:00
|
|
|
title: "热门镜像介绍",
|
|
|
|
collapsable: false,
|
2019-10-29 06:31:45 +00:00
|
|
|
children: [
|
|
|
|
'appendix/repo/',
|
|
|
|
'appendix/repo/ubuntu',
|
|
|
|
'appendix/repo/centos',
|
|
|
|
'appendix/repo/nginx',
|
|
|
|
'appendix/repo/php',
|
|
|
|
'appendix/repo/nodejs',
|
|
|
|
'appendix/repo/mysql',
|
|
|
|
'appendix/repo/wordpress',
|
|
|
|
'appendix/repo/mongodb',
|
|
|
|
'appendix/repo/redis',
|
2019-11-05 11:26:45 +00:00
|
|
|
],
|
|
|
|
},
|
2019-11-14 01:21:31 +00:00
|
|
|
{
|
|
|
|
title: "Docker 命令",
|
|
|
|
collapsable: false,
|
|
|
|
children: [
|
|
|
|
'appendix/command/',
|
|
|
|
'appendix/command/docker',
|
|
|
|
'appendix/command/dockerd',
|
|
|
|
]
|
|
|
|
},
|
2019-11-06 06:53:09 +00:00
|
|
|
'appendix/best_practices',
|
|
|
|
'appendix/debug',
|
|
|
|
'appendix/resources',
|
2019-10-29 06:31:45 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|