《Docker Up & Running》:部署生产级可靠容器的实战指南

需积分: 0 71 下载量 191 浏览量 更新于2024-07-21 收藏 3MB PDF 举报
《Docker Up and Running: Shipping Reliable Containers in Production》是一本由Karl Matthias 和 Sean P. Kane 联合撰写的实用指南,ISBN 978-1-491-91757-2,定价分别为 US$34.99 和 CAN$40.99。本书深入探讨了如何在组织中大规模部署软件时利用Docker这一技术。Docker正在迅速改变软件部署的方式,特别强调了Linux容器在工作流程中的应用及其集成细节的重要性,这些并非易事。 作者作为新 Relic 公司的两位资深系统可靠性工程师,他们结合自己自Docker初始发布以来在生产环境中积累的经验,旨在帮助读者充分利用Docker的优势,同时避免他们在实际操作中遇到的问题。本书共分为12章,内容覆盖广泛: 1. **第一章:介绍** - 为读者提供Docker背景和总体概述。 2. **第二章:Docker概览** - 简要阐述Docker的核心概念和原理。 3. **第三章:安装Docker** - 指导用户如何在各种操作系统上安装和配置Docker环境。 4. **第四章:使用Docker镜像** - 学习如何创建、管理以及分享应用程序的镜像。 5. **第五章:处理Docker容器** - 探索如何运行、监控和停止容器,以及容器与宿主机的关系。 6. **第六章:深入Docker** - 包括Dockerfile编写、网络配置等内容。 7. **第七章:迈向生产级容器** - 如何将Docker应用到实际生产环境中,包括部署策略。 8. **第八章:调试容器** - 学习如何诊断和解决容器运行中的问题。 9. **第九章:Docker规模化部署** - 处理大规模容器集群的管理和优化。 10. **第十章:高级主题** - 探讨更复杂的Docker相关领域,如部署工具、网络、编排、安全和配置。 11. **第十一章:设计生产级容器平台** - 如何构建和维护一个健壮的容器化基础设施。 12. **第十二章:结论** - 总结全书学习内容,展望Docker的未来趋势。 通过阅读这本书,读者将掌握如何利用Docker有效地管理应用依赖,简化部署流程,并在生产环境中稳定地测试、扩展和维护容器。无论是初学者还是经验丰富的开发人员,都能从中获得宝贵的知识和实践经验,以便更好地应对软件部署的挑战。

Error: Invalid usage: unknown subcommand: `docder` xiaohei@xiaoheideMacBook-Pro ~ % brew services start docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services start docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services restart docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % docker -v Docker version 24.0.2, build cb74dfcd85 xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services restart docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services list Name Status User File nginx started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist php@7.4 started root /Library/LaunchDaemons/homebrew.mxcl.php@7.4.plist xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services docker Usage: brew services [subcommand] Manage background services with macOS' launchctl(1) daemon manager. If sudo is passed, operate on /Library/LaunchDaemons (started at boot). Otherwise, operate on ~/Library/LaunchAgents (started at login). [sudo] brew services [list] (--json): List information about all managed services for the current user (or root). [sudo] brew services info (formula|--all|--json): List all managed services for the current user (or root). [sudo] brew services run (formula|--all): Run the service formula without registering to launch at login (or boot). [sudo] brew services start (formula|--all|--file=): Start the service formula immediately and register it to launch at login (or boot). [sudo] brew services stop (formula|--all): Stop the service formula immediately and unregister it from launching at login (or boot). [sudo] brew services kill (formula|--all): Stop the service formula immediately but keep it registered to launch at login (or boot). [sudo] brew services restart (formula|--all): Stop (if necessary) and start the service formula immediately and register it to launch at login (or boot). [sudo] brew services cleanup: Remove all unused services. --file Use the service file from this location to start the service. --all Run subcommand on all services. --json Output as JSON. -d, --debug Display any debugging information. -q, --quiet Make some output more quiet. -v, --verbose Make some output more verbose. -h, --help Show this message. Error: Invalid usage: unknown subcommand: `docker` xiaohei@xiaoheideMacBook-Pro ~ % brew services restart docker Error: Formula `docker` has not implemented #plist, #service or installed a locatable service file xiaohei@xiaoheideMacBook-Pro ~ % docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? xiaohei@xiaoheideMacBook-Pro ~ % docker images Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? xiaohei@xiaoheideMacBook-Pro ~ % brew services start docker Error: Formula `docker` has not implemented #plist, #service or installed a locatable service file xiaohei@xiaoheideMacBook-Pro ~ % 帮我看下错误

2023-06-07 上传