1、如果没有使用compose,就将容器打包成镜像,再加载镜像
docker load -i images.tar
2、如果使用compose,就把源码全部移过来,使用compose创建镜像,后台运行。或者如果依赖nginx镜像,就使用compose直接后台运行,注意数据卷映射宿主服务器。