Update vuepress nav

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
This commit is contained in:
Kang Huaishuai 2020-08-27 23:09:11 +08:00
parent c25c7283cf
commit eac2a57633
No known key found for this signature in database
GPG Key ID: 5E515022F565DA09
5 changed files with 77 additions and 74 deletions

View File

@ -36,54 +36,55 @@ module.exports = {
docsRepo: 'yeasy/docker_practice', docsRepo: 'yeasy/docker_practice',
docsDir: '/', docsDir: '/',
editLinks: true, editLinks: true,
nav: [{ nav: [
text: '安装 Docker', {
link: '/install/', text: '微信交流群',
}, link: 'https://yewm28.coding-pages.com/wechat.jpg',
{ },
text: 'Docker 入门', {
link: '/' text: '小程序',
}, link: 'https://yewm28.coding-pages.com/49682252-3ac4c500-faec-11e8-86ab-eafe0139be6b.jpg',
{ },
text: 'Docker 实战', {
link: '/cases/os/' text: '安装 Docker',
}, link: '/install/',
{ },
text: 'CI/CD', {
link: '/cases/ci/' text: 'Docker 入门',
}, link: '/'
{ },
text: 'Docker 仓库', {
link: '/repository/' text: 'Docker 实战',
}, link: '/cases/os/'
{ },
text: '底层实现', {
link: '/underly/', text: 'CI/CD',
}, link: '/cases/ci/'
{ },
text: 'Compose', {
link: '/compose/', text: 'Compose',
}, link: '/compose/',
{ },
text: 'Kubernetes', {
link: '/kubernetes/', text: 'Kubernetes',
}, link: '/kubernetes/',
{ },
text: "云计算", {
link: "/cloud/", text: "云计算",
}, link: "/cloud/",
{ },
text: 'GitHub', {
link: 'https://github.com/yeasy/docker_practice' text: 'GitHub',
}, link: 'https://github.com/yeasy/docker_practice'
// { },
// text: '捐赠', // {
// link: '' // text: '捐赠',
// }, // link: ''
{ // },
text: '腾讯云容器服务', {
link: 'https://cloud.tencent.com/act/cps/redirect?redirect=10058&cps_key=3a5255852d5db99dcd5da4c72f05df61' text: '腾讯云容器服务',
}, link: 'https://cloud.tencent.com/act/cps/redirect?redirect=10058&cps_key=3a5255852d5db99dcd5da4c72f05df61'
},
// { // {
// text: '语言', // text: '语言',
// items: [{ // items: [{
@ -146,20 +147,6 @@ module.exports = {
'mirror', 'mirror',
'experimental', 'experimental',
], ],
'/underly/': [
'arch',
'namespace',
'cgroups',
'ufs',
'container_format',
'network',
],
'/repository/': [
'dockerhub',
'registry',
'registry_auth',
'nexus3_registry',
],
'/cases/os/': [ '/cases/os/': [
{ {
title: "操作系统", title: "操作系统",
@ -264,6 +251,17 @@ module.exports = {
'container/rm', 'container/rm',
], ],
}, },
{
title: "Docker 仓库",
collapsable: false,
children: [
'repository/',
'repository/dockerhub',
'repository/registry',
'repository/registry_auth',
'repository/nexus3_registry',
],
},
{ {
title: "数据管理", title: "数据管理",
collapsable: false, collapsable: false,
@ -323,6 +321,19 @@ module.exports = {
'security/summary', 'security/summary',
], ],
}, },
{
title: "底层实现",
collapsable: false,
children: [
'underly/',
'underly/arch',
'underly/namespace',
'underly/cgroups',
'underly/ufs',
'underly/container_format',
'underly/network',
],
},
{ {
title: "Docker Buildx", title: "Docker Buildx",
collapsable: false, collapsable: false,
@ -353,14 +364,6 @@ module.exports = {
'coreos/install', 'coreos/install',
], ],
}, },
{
title: "Docker 开源项目",
collapsable: false,
children: [
'opensource/',
'opensource/linuxkit',
],
},
'podman/', 'podman/',
'appendix/faq/', 'appendix/faq/',
{ {

View File

@ -147,8 +147,6 @@
* [Travis CI](cases/ci/travis/README.md) * [Travis CI](cases/ci/travis/README.md)
* [ IDE 中使用 Docker](ide/README.md) * [ IDE 中使用 Docker](ide/README.md)
* [VS Code](ide/vsCode.md) * [VS Code](ide/vsCode.md)
* [Docker 开源项目](opensource/README.md)
* [LinuxKit](opensource/linuxkit.md)
* [podman - 下一代 Linux 容器工具](podman/README.md) * [podman - 下一代 Linux 容器工具](podman/README.md)
* [附录](appendix/README.md) * [附录](appendix/README.md)
* [附录一常见问题总结](appendix/faq/README.md) * [附录一常见问题总结](appendix/faq/README.md)

View File

@ -1,6 +1,6 @@
# Fedora CoreOS # Fedora CoreOS
`CoreOS` 是一个专门为安全和大规模运行容器化工作负载而构建的新 Fedora 版本它是 Fedora Atomic Host CoreOS Container Linux 的后项目 `CoreOS` 是一个专门为安全和大规模运行容器化工作负载而构建的新 Fedora 版本它是 Fedora Atomic Host CoreOS Container Linux 的后项目
`CoreOS` 的安装文件和运行依赖非常小它提供了精简的 Linux 系统它使用 Linux 容器在更高的抽象层来管理你的服务而不是通过常规的包管理工具 `yum` `apt` 来安装包 `CoreOS` 的安装文件和运行依赖非常小它提供了精简的 Linux 系统它使用 Linux 容器在更高的抽象层来管理你的服务而不是通过常规的包管理工具 `yum` `apt` 来安装包

View File

@ -32,3 +32,5 @@ COPY --chown=bin files* /mydir/
COPY --chown=1 files* /mydir/ COPY --chown=1 files* /mydir/
COPY --chown=10:11 files* /mydir/ COPY --chown=10:11 files* /mydir/
``` ```
如果源路径为文件夹复制的时候不是直接复制该文件夹而是将文件夹中的内容复制到目标路径

View File

@ -18,7 +18,7 @@ RUN [ "redis-server" ]
# 建立 redis 用户并使用 gosu 换另一个用户执行命令 # 建立 redis 用户并使用 gosu 换另一个用户执行命令
RUN groupadd -r redis && useradd -r -g redis redis RUN groupadd -r redis && useradd -r -g redis redis
# 下载 gosu # 下载 gosu
RUN wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64" \ RUN wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.12/gosu-amd64" \
&& chmod +x /usr/local/bin/gosu \ && chmod +x /usr/local/bin/gosu \
&& gosu nobody true && gosu nobody true
# 设置 CMD并以另外的用户执行 # 设置 CMD并以另外的用户执行