r/docker•
dklund

Docker containers on another machine

I have a cluster with a number of VM's running tests. All these VM's now need to deploy and run some docker containers as a part of some tests. One could of course install and deploy all the docker containers locally in the VM, but this seems like the wrong approach since they will be a huge memory hog and not share any resources.

I guess I need a new host, running the docker containers and then connect to them from the specific VM. However, while I have some experience with docker this has always been in a local or cloud context. I am unsure what the de facto approach to do this is.

what technology will I use in order to have a machine which remote VM's will deploy, use and remove docker containers from.

Posted Jun 29, 2021, 7:39 AM UTC

12
TruthahnLeberwurst•

Why is this the wrong approach? Where are docker containers a memory hog? Did you actually measure this or is that just a gut feeling?

I'd run these containers in the VM like you said and see if you run into performance issues.

4
J1Br•

Have you tried to install and run a ssh-service on the containers that you want to connect to? You should be able to connect to your containers via ssh easily in case ssh-service is running on the target container by running the following command:

$ ssh container_IP:openedPort (default port is 22)

-3
[deleted]•

[deleted]

7