linux-containers

Is it possible to share memory between docker containers?

你说的曾经没有我的故事 提交于 2019-11-27 20:05:49
I work on an application with different processes and I'm asked to contain those processes for achieving more isolation. The problem is that the processes share memory with a single "hypervisor" process in order to exchange data (they use classic shared buffers). This solution was implemented for performance requirement and because it is running in user-space, so there aren't content switching between user-space and kernel-space. If I'm not wrong is not possible to run more than one docker container inside a single IPC namespace, but I don't know if it is possible that a single docker

Updating PATH environment variable permanently in Docker container

百般思念 提交于 2019-11-27 10:41:01
问题 I tried adding to the PATH in the files ~/.profile and /etc/profile as follow. PATH = $PATH:/required/path However, it does not work. Then I tried with adding the line show, which did not work either. export PATH It did not work even after restarting the container and the host both. 回答1: If you want to include a /new/path in the Dockerfile , adding the line: ENV PATH "$PATH:/new/path" in Dockerfile should work. 回答2: Put in your Dockerfile a line ENV PATH xxx see an example in this Dockerfile

How do I assign a port mapping to an existing Docker container?

被刻印的时光 ゝ 提交于 2019-11-27 02:28:14
I'm not sure if I've misunderstood something here, but it seems like it's only possible to set port mappings by creating a new container from an image. Is there a way to assign a port mapping to an existing Docker container? Fujimoto Youichi I'm also interested in this problem. As @Thasmo mentioned, port forwardings can be specified ONLY with docker run command. Other commands, docker start does not have -p option and docker port only displays current forwardings. To add port forwardings, I always follow these steps, stop running container docker stop test01 commit the container docker commit

How can I backup a Docker-container with its data-volumes?

我是研究僧i 提交于 2019-11-26 21:14:52
I've been using this Docker-image tutum/wordpress to demonstrate a Wordpress website. Recently I found out that the image uses volumes for the MySQL-data. So the problem is this: If I want to backup and restore the container I can try to commit an image, and then later delete the container, and create a new container from the committed image. But if I do that the volume gets deleted and all my data is gone. There must be some simple way to backup my container plus its volume-data but I can't find it anywhere. Thomasleveil if I want to revert the container I can try to commit an image, and then

Is it possible to share memory between docker containers?

≡放荡痞女 提交于 2019-11-26 19:59:46
问题 I work on an application with different processes and I'm asked to contain those processes for achieving more isolation. The problem is that the processes share memory with a single "hypervisor" process in order to exchange data (they use classic shared buffers). This solution was implemented for performance requirement and because it is running in user-space, so there aren't content switching between user-space and kernel-space. If I'm not wrong is not possible to run more than one docker

How can I backup a Docker-container with its data-volumes?

吃可爱长大的小学妹 提交于 2019-11-26 06:10:05
问题 I\'ve been using this Docker-image tutum/wordpress to demonstrate a Wordpress website. Recently I found out that the image uses volumes for the MySQL-data. So the problem is this: If I want to backup and restore the container I can try to commit an image, and then later delete the container, and create a new container from the committed image. But if I do that the volume gets deleted and all my data is gone. There must be some simple way to backup my container plus its volume-data but I can\