简体   繁体   English

Docker:如何将带有数据的容器从一台主机传输到另一台主机

[英]Docker: How to transfer container with data from one host to another

for testing purposes with databases i need to transfer a mysqlsql container with database data to another host by usb stick.出于对数据库的测试目的,我需要通过 U 盘将带有数据库数据的 mysqlsql 容器传输到另一台主机。

I ran into trouble by using a data volume.我在使用数据卷时遇到了麻烦。 it work fine locally but it is not simple to deploy to another host.它在本地工作正常,但部署到另一台主机并不简单。

Is there a simple way to exchage container with data?有没有一种简单的方法可以用数据交换容器?

not as easy as i thought.不像我想的那么容易。 I have to rethink if docker is right for my purposes.我必须重新考虑 docker 是否适合我的目的。 Thank you for your help.感谢您的帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将文件从一个 docker 容器复制到另一台主机上的另一个容器? - How to copy files from one docker container to another on a different host? 如何将构建文件从一个容器复制到另一个容器或 docker 上的主机 - How to copy build files from one container to another or host on docker 从一个 Docker 容器内部,如何连接到同一 Docker 主机上另一个 Docker 容器的端口? - From inside one Docker container, how to connect to the port of another Docker container on the same Docker host? Docker+SSH,如何定期安全地将docker镜像从一台主机传输到另一台主机? - Docker+SSH, how to transfer docker images from one host to another securely on a regular basis? 如何从另一个主机 Y(而不是主机 Y 中的容器)与主机 X 中正在运行的 Docker 容器通信 - How to communicate with a running Docker container in a Host X from another Host Y(not from a container in Host Y) Docker:当使用容器名称从一个容器连接到另一个容器时,如何修复“无法将主机名”postgres“转换为地址”? - Docker: How to fix “could not translate host name ”postgres“ to address” when connecting from one container to another using container name? 如何从其他主机访问在MacOSX上运行的docker容器? - How to access a docker container running on MacOSX from another host? 如何从与主机网络一起运行的另一个 docker 容器访问自定义网络中的 docker 容器 - How to access docker container in a custom network from another docker container running with host network 如何将数据从主机转发到Docker容器? - How to forward data from a host computer to a Docker container? 如何将数据从Docker容器获取到主机的共享文件夹中? - How to get data from docker container into shared folder at host?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM