• 可以轻松地将 Docker 容器从一个平台迁移到另一个平台,无需担心依赖和环境配置的差异。比如,在本地开发的容器可以无缝部署到云服务器上。

  • Docker 容器相较于传统的虚拟机更加轻量和高效,能够快速启动和停止,节省系统资源。例如,启动一个 Docker 容器可能只需要几秒钟,而启动一个虚拟机则可能需要几分钟。

image-20241102215852656

命令行docker使用方法

https://huaweicloud.csdn.net/670ce66ce2ce0119e0a27edb.html?dp_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NzM5MDA2NCwiZXhwIjoxNzMxMTU5NjU1LCJpYXQiOjE3MzA1NTQ4NTUsInVzZXJuYW1lIjoiZ3l4NDcifQ.hzLOYCh5P5eOM8ff23FTSHQhSYeZsVRNhNBFegus0Yg&spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7Eactivity-2-141786823-blog-129399578.235%5Ev43%5Epc_blog_bottom_relevance_base7&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7Eactivity-2-141786823-blog-129399578.235%5Ev43%5Epc_blog_bottom_relevance_base7&utm_relevant_index=5#devmenu3

https://blog.csdn.net/btaworld/article/details/138509483?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522D9A8CF3A-4694-4F9C-889C-753D164D614E%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=D9A8CF3A-4694-4F9C-889C-753D164D614E&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_click~default-4-138509483-null-null.142v100pc_search_result_base7&utm_term=docker%20desktop%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B&spm=1018.2226.3001.4187

image-20241102222921636

image-20241102222941215

image-20241102222739718

小项目

image-20241102223028316

image-20241102223051288

image-20241102223104883