Docker 从入门到实践 0.9.0(2017-12-31)Drone Docker 开源项目 LinuxKit 附录 附录一:常见问题总结 附录二:热门镜像介绍 Ubuntu CentOS MySQL MongoDB Redis Nginx WordPress Node.js 附录三:Docker 命令查询 附录四:Dockerfile 最佳实践 附录五:资源链接 附录六:Docker 中文资源 6 Docker — ubuntu:16.04 来具体指定所需哪个版本的镜 像。如果忽略了标签,比如 ubuntu ,那将视为 ubuntu:latest 。 仓库名经常以 两段式路径 形式出现,比如 jwilder/nginx-proxy ,前者往往意味着 Docker Registry 多用户环境下的用户名,后者则往往是对应的软件名。但这并非绝对,取决于所使 用的具体 Docker Registry 的软件或服务。 info 都正常的话,可以尝试运行一个 Nginx 服务器: $ docker run -d -p 80:80 --name webserver nginx 服务运行后,可以访问 http://localhost,如果看到了 "Welcome to nginx!",就说明 Docker for Mac 安装成功了。 macOS 45 要停止 Nginx 服务器并删除执行下面的命令: $ docker0 码力 | 370 页 | 6.73 MB | 1 年前3
Docker 从入门到实践 0.4架构设计 22. 附录一:命令查询 23. 附录二:常见仓库介绍 i. Ubuntu ii. CentOS iii. MySQL iv. MongoDB v. Redis vi. Nginx vii. WordPress viii. Node.js 24. 附录三:有用的资源 Docker —— 从入门到实践 4 v0.4 Docker 是个伟大的项目,它彻底释放了虚拟 tomcat/weblogic 镜像的使用 存储的使用 tomcat 和 weblogic 集群的实现 Docker —— 从入门到实践 73 创建 tomcat/weblogic 集群 这样在前端使用 nginx 来做负载均衡就可以完成配置了 Docker —— 从入门到实践 74 创建 tomcat/weblogic 集群 Docker 默认的桥接网卡是 docker0。它只会在本机桥接所有的容器网卡,举例来说容器的虚拟网卡在主机 RUN apt-get update && apt-get install -y nginx RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf # Commands when creating a new container CMD /usr/sbin/nginx 其中,一开始必须指明所基于的镜像名称,接下来推荐说明维护者信息。 后面则是镜像操作指令,例如0 码力 | 179 页 | 2.27 MB | 1 年前3
Docker 从⼊⻔到实践https://asciinema.org/a/170462/embed? $ docker run [组织名称]/<镜像名称>:[镜像标签] Docker Hub $ docker search nginx via: 《How Many Public Images are there on Docker Hub?》 http://hub.docker.com $ docker run \ "$PWD/workspace":/var/www/hello.world \ -v "$PWD/hello.world.conf":/etc/nginx/conf.d/hello.world.conf \ nginx 如何运⾏⼀个 Nginx 容器? // hello.world.conf server { listen 80; server_name hello docker-compose.yml version: "2" services: nginx: depends_on: - "php" image: "nginx:latest" volumes: - "$PWD/src/docker/conf:/etc/nginx/conf.d" - "$PWD:/home/q/system/m_look_360_cn"0 码力 | 30 页 | 2.88 MB | 1 年前3
共 3 条
- 1













