(common) ➜ [/Users/admin/yidian/script-tool/dk/dockerfile-py] docker export 9d88c87a0ab0 > ./warning_kafka_py.tar
(common) ➜ [/Users/admin/yidian/script-tool/dk/dockerfile-py] docker import ./warning_kafka_py.tar warn_test
sha256:7b52f33ff4785fe94cf171d3af51f544233e3c75f6e3403784ee1ff5ed9c9882
(common) ➜ [/Users/admin/yidian/script-tool/dk/dockerfile-py] docker run -itd warn_test python3 get_lan.py
705f5fdb2a5a92ec4434f208a08f5b5e8dacb8335bcba9edee7b2bd5548ca7a5
(common) ➜ [/Users/admin/yidian/script-tool/dk/dockerfile-py] docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(common) ➜ [/Users/admin/yidian/script-tool/dk/dockerfile-py] docker run --name warn_test -itd warn_test /bin/bash
05226622b934a5e807457e1cd8d3e85ff90b0bbe054ac5820379a6244c137744
(common) ➜ [/Users/admin/yidian/script-tool/dk/dockerfile-py] docker run --name warn_test -itd warn_test python3 /home/image/get_lan.py
docker [export\import]容器导出与从另一个机器导入为镜像并运行
最新推荐文章于 2024-02-20 21:43:31 发布