yeasy / docker_practice Goto Github PK
View Code? Open in Web Editor NEWLearn and understand Docker&Container technologies, with real DevOps practice!
Home Page: https://yeasy.gitbook.io/docker_practice/
Learn and understand Docker&Container technologies, with real DevOps practice!
Home Page: https://yeasy.gitbook.io/docker_practice/
centos安装docker-registry其中的命令应该是sudo pip install docker-registry吧,我用python-pip命令是执行失败。centos版本gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
希望在“macOS 操作系统安装 Docker”章节中加入“homebrew安装docker”的使用方式
你好,我在kindle touch上閱讀時,發現字體顏色偏淡變成淺灰色,不是純黑,閱讀起來會覺得有點吃力,請問有什麼方式能讓字體顏色正確呢?謝謝。
访问:https://yeasy.gitbooks.io/docker_practice/content/
提示:
无法访问此网站
网址为 https://yeasy.gitbooks.io/docker_practice/content/ 的网页可能暂时无法连接,或者它已永久性地移动到了新网址。
ERR_NAME_RESOLUTION_FAILED
全部的插件配置应该是:
"plugins":
[
"image-captions",
"github-buttons",
"fontsettings",
"livereload",
"highlight",
"lunr",
"sharing",
"search"
]
`
这个命令现在不再是必须的了,现在docker官方已经提供了下面这个命令
docker exec CONTAINER_NAME /bin/bash
可以避免使用nsenter了
"如果要导出本地的镜像到文件,可以使用docker export命令."
docker export 是作用于container的,而docker save 是作用于image的。
kubernetes/quickstart.md这个文件没内容!
我已经读了 0.2.0, 今天看到 0.2.1 发布,想知道具体的差异。
能否对每个版本加一个 tag, 这样我们就能快速查看版本差异,多谢。
kubernetes/concepts.md 129行 “出发”应该是“触发”吧
有时候会发现所删除的层数和自己 docker pull 看到的层数不一样的源。
除了镜像依赖意外,还需要注意的是容器对镜像的依赖。如果有用这个镜像启动的
容器存在(即使容器没有运行),那么同样不可以删除这个镜像。
docker_practice/appendix/repo/ubuntu.md
“该仓库位于 https://hub.docker.com/_/ubuntu/,提供了” 链接字段多了
如果使用了 -d 参数运行容器。
$ sudo docker run ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done
命令中并无-d
https://github.com/yeasy/docker_practice/blob/master/image/create.md
中的“MAINTAINER Docker Newbee [email protected]” 与后续的“Step 1 : MAINTAINER Kate Smith [email protected]” 需要匹配
我找到找一个非主流群。。366203473是这个么?
Link: https://yeasy.gitbooks.io/docker_practice/content/image/dockerfile/env.html
✘-2 ~/Downloads/docker_practice [master|✔]
16:40 $ grep '使用使用' -r *
image/dockerfile/env.md:这个指令很简单,就是设置环境变量而已,无论是后面的其它指令,如 RUN
,还是运行时的应用,都可以直接使用使用这里定义的环境变量。
Link: https://yeasy.gitbooks.io/docker_practice/content/image/other.html
image/other.md:导入成功后,我们可以用 docker ps
看到这个导入的镜像:
读了你的书,发现排版的问题很大。
建议参考:
https://github.com/sparanoid/chinese-copywriting-guidelines
在书写的时候尽量参考一个规范,而且在接受 pull request 的时候,也要用相同的规范去检查这些 pull request.
https://yeasy.gitbooks.io/docker_practice/content/repository/local_repo.html
默认情况下,仓库会被创建在容器的 /tmp/registry 下。可以通过 -v 参数来将镜像文件存放在本地的指定路径。 例如下面的例子将上传的镜像放到 /opt/data/registry 目录。
$ sudo docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry
should be $ sudo docker run -d -p 5000:5000 -v /opt/data/registry:/var/lib/registry registry
The current link on project page is: https://www.gitbook.io/book/yeasy/docker_practice, which HTTPS certificate expired somehow.
So, maybe it would be better to replace the link with https://www.gitbook.com/book/yeasy/docker_practice/details
I just downloaded the epub and pdf version of this book, and there is no pictures in it.
您好:
非常感謝 @Waitfish 和 @yeasy 的撰寫和分享,請問是否能讓台灣的 Docker.Taipei 社群將此著作翻譯成繁體版?
另外,這本 Docker —— 从入门到实践 應該是 @Waitfish 原創非英文譯著?是否遵照何種開源授權?
再次感謝您們的貢獻,讓台灣 Docker 同好也能分享到您們的付出。
用什么软件绘制的?
If visit https://yeasy.gitbooks.io/docker_practice/content/ from mobile, half of the page will be blank:
It is caused by github-buttons
plugins.
Docker 是个伟大的项目,它彻底释放了虚拟化的威力,极大降低了云计算资源供应的成本,同时让应用的分发、测试、部署和分发都变得前所未有的高效和轻松
上面的内容中,分发出现了两次:【同时让应用的分发、测试、部署和分发都变得前所未有的高效和轻松】
QQ 群 X (可加):366203473 这个群号码搜索后的结果是音乐群。是否写错号码了?
gitbook-treeview is a Gitbook plugin designed for generating structures for articles of a book. As the following picture shown, the main structure of a whole article has been clearly shown before contents, and each title has also been directed to a corresponding part. Docker Practice is a large book, which has integrated with Gitbook, and I hope that the plugin can helps to enhance readability. If you like it, I hope you can star my project too, and thanks for your appreciations. As for the picture, it's an article named "Asynchronous Programming" in my personal wiki book.
实测并没有, ubuntu 14.04, docker 1.8.3
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
e4fb617479de training/webapp "python app.py" 11 seconds ago Up 11 seconds 0.0.0.0:32768->5000/tcp web
http://dockerpool.com/static/books/docker_practice/network/linking.html
您好,根据onbuild章节的内容,不能成功build镜像,具体如下;
ONBUILD
的Dockerfile内容如下:FROM node:slim
RUN "mkdir /app"
WORKDIR /app
ONBUILD COPY ./package.json /app
ONBUILD RUN [ "npm", "install" ]
ONBUILD COPY . /app/
CMD [ "npm", "start" ]
哪些步骤是先后顺序,哪些步骤是并列顺序等等。整个来说就是逻辑不清晰,步骤顺序混乱,对于没用过docker的来说,完全不知道具体怎么操作。我只能又在网上另外搜索搭建私有仓库
docker practice looks awesome, any plans to translated it to english?
我在使用github上的bashrc脚本时docker-enter报出错误:
dirname: invalid option -- 'b'
Try 'dirname --help' for more information.
我在检查错误是发现此时$0为-bash,我把所有的$0替换成了$BASH_SOURCE[0]后问题解决了。我的环境为centos7,bash version:GNU bash, version 4.2.45(1)-release (x86_64-redhat-linux-gnu)
$ sudo docker run -t -i training/sinatra /bin/bash
root@0b2616b0e5a8:/# gem install json
当结束后,我们使用 exit 来退出,现在我们的容器已经被我们改变了,使用 docker commit 命令来提交更新后的副本。
用exit退出container里的bash会话,这个container也就结束了,后面commit时候指定container id已经不能用了。
应该是另外打开一个终端执行commit吧?
https://yeasy.gitbooks.io/docker_practice/content/image/commit.html
直接用浏览器访问的话,我们会看到默认的 Nginx 欢迎页面。后面跟着的图裂了。
yeasy 您好:
因 Docker.Taipei 社群受惠於您的開放著作,並以社群力量翻譯成繁體版。日前碁峰出版社與 Docker.Taipei 接洽,希望能印製實體書籍,礙於之前授權只同意 gitbook 網上閱讀,須經您同意才可後續出版事宜,繁體版也會增加台灣系統案例等章節,所有繁體版稅將全數用於 Docker 技術推廣和社群使用。還請 yeasy 您告知,無論同意與否,再次感謝您的貢獻和無私分享,非常謝謝您!
compose的版本在不断更新,目前(截至2015/07/07)最新版本为1.3.1,而文档未必会随之更新
建议在文档上加上查看最新版本的链接或者增加当时最新版本的日期
系统内核应该是ubuntu 14.04的,有人验证过吗?
我在添加 /etc/apt/sources.list.d/docker.list
完之后,执行sudo apt-get update
最后几行报错:
Fetched 11.8 MB in 41s (280 kB/s)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages Hash Sum mismatchW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-amd64/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
然后导致执行 sudo apt-get install -y linux-image-extra-$(uname -r)
时报错:
E: Unable to locate package linux-image-extra-3.4.0
E: Couldn't find any package by regex 'linux-image-extra-3.4.0'
I am new to docker. I have been learning it mostly by reading articles in web and trying them on my own. I came across this github page and it looks really easy for newcomer to understand nits and grits. I use Google translate to translate Chinese, I can understand almost everything. But, I think it would be good if there is English translation for this. I want to make a feature request for translating these document to English.
已添加到《免费的计算机编程类中文书籍书单》
https://github.com/justjavac/free-programming-books-zh_CN
地址: https://yeasy.gitbooks.io/docker_practice/content/compose/django.html
运行错误:CommandError: 'docker-composeexample' is not a valid project name. Please use only numbers, letters and underscores.
https://yeasy.gitbooks.io/docker_practice/content/basic_concept/repository.html
第三段
一般而言,一个仓库包含的是同一个软件的不同版本的镜像,而标签则用于对应于软件的的不同版本。
对于软件的什么版本呢?
加速器的配置在国内使用是必须的,否则接下来的镜像、容器章节的命令会很难执行。现在读者很可能读到了后面的加速器章节才知道问题出在哪里、应该如何配置。因此建议将其移至安装章节,作为安装后的配置部分存在。
原文是:
$ service docker start
$ chkconfig docker on
似乎需要以管理员权限运行:
按照如下操作有问题,会报-bash: /etc/apt/sources.list.d/docker.list: Permission denied
不得已,已经通过手动vi完成
接下来就可以添加 Docker 的官方 apt 软件源了。通过下面命令创建
/etc/apt/sources.list.d/docker.list
文件,并写入源的地址内容。非 trusty 版本的系统注意修改为自己对应的代号。$ sudo cat <<EOF > /etc/apt/sources.list.d/docker.list deb https://apt.dockerproject.org/repo ubuntu-trusty main EOF
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.