If you use STDIN or specify a URL pointing to a plain text file, the system places the contents into a file called Dockerfile, and any -f, --file option is ignored.
1、拉取代码、静态扫描、单元测试,最后打包成制品,上传;
2、在目标机器上下载1中的制品;
3、目标机器上已经有docker 运行环境;
4、构建镜像、运行实例(强制删除、新建,待优化为更新镜像、平滑启动服务)
2、目标机器代码下载路径
mkdir -p /home/project/world
tar zxvf /home/admin/app/world_python.tgz -C /home/project/world
3、强制删除、新建,待优化为更新镜像、平滑启动服务
CLI 命令
docker rmi | Docker Documentation https://docs.docker.com/engine/reference/commandline/rmi/
docker build | Docker Documentation https://docs.docker.com/engine/reference/commandline/build/
In most cases, it’s best to put each Dockerfile in an empty directory.
查看日志
docker logs | Docker Documentation https://docs.docker.com/engine/reference/commandline/logs/