Docker Community Forums

Share and learn in the Docker community.

How can I SSH into the Beta's MobyLinuxVM

docker
beta

(Lunatix) #2

I second this - we also have scripts to set up our (rather large, complicated to manually setup) test environment.
Normally I would clone our GIT repository or add a shared directory from host to client to be able to execute the script(s).

SSH access would be great :slight_smile:

Kind Regards
Denis Germ


(odalet) #3

+1 for being able to ssh into mobylinux host


(Archergod) #4

Yes, I need to that too, I want to mount a different volume than User’s default as that disk is full :). But since I cannot SSH I cannot mount it.


(Mohan Vedula) #5

Yes, I would like to see this as well.


Generalized remote file sync
(Sandy CHAN) #6

Yes, I would like to modify docker.sock in one of the containers …

For those who are looking for docker.sock
it is located at /run/docker.sock


(Manuel Patrone) #7

Not exactly ssh but equivalent results. “Docker Saigon” solution:

#get a privileged container with access to Docker daemon
docker run --privileged -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker alpine sh

#run a container with full root access to MobyLinuxVM and no seccomp profile (so you can mount stuff)
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh

#switch to host FS
chroot /host


Docker for Windows should resync VM time when computer resumes from sleep
(Michael Friis) #8

When designing Docker for Windows, we weighed trade-offs between flexibility and customizability vs. dependability and determinism.

docker-machine is very flexible (there are lots of different drivers) and customizable (the setup has lots of parameters and there’s SSH access to the machines). But the experience is also very variable (not all features work with all drivers or settings) and inexperienced users can quickly get in trouble.

With Docker for Windows, we’ve tried to build a more dependable Docker environment. We know that this has come at some cost to flexibility. Your feedback is very valuable as we continue to work towards the right balance.

Michael


(Manuel Patrone) #9

Thanks for your response Michael. But if you allow my 2cents on this…

DfW will inevitably be compared to the current Docker Toolbox. And I would expect that a “docker-machine create -d dfw …” to be on the horizon… :slight_smile:

Why would that make a less dependable Docker environment? I see DfW as a dev environment replacing Virtualbox by hyperv and (hopefully) making things more robust and speedier…


(Joyce Babu) #10

Without SSH access, how can we add a registry mirror or whitelist an insecure registry?


(Michael Friis) #11

We’re working on making this a setting from the systray menu - it should land in the next beta which is imminent.


(Danielchmbrs) #12

Fantastic. Thanks for listening to the feedback. Looking forward to playing with that!


(Sbadem) #13

I was looking for ssh access to set the http proxy. I want to be able to set the proxy for the VM since docker for windows does not work behind our corporate proxies.


(Ailurarctos) #14

A variant of How can I SSH into the Beta's MobyLinuxVM is to use nsenter on PID 1. Build a Docker image that has nsenter inside, like this:

FROM alpine
MAINTAINER You <you@example.com>
RUN apk update && \
    apk add util-linux && \
    rm -rf /var/cache/apk/*
ENTRYPOINT ["nsenter", "--target", "1", "--mount", "--uts", "--ipc", "--net", "--pid"]

Then you can “docker build . -t hostenter” and enter the host with “docker run --rm -it --privileged --pid=host hostenter”:

PS C:\Users\You> docker run -it --privileged --pid=host hostenter
moby:/#

I was able to add the mfsymlinks option to my Windows mounts using this approach.


Hyper-v usage of dynamic memory
(Mayerwin) #15

Is it possible to install docker plugins such as Rancher Convoy without SSH?


(Gavin Jones) #16

Running docker images to look at the filesystem of the MobyVM is useful and educational, but still no good if you are wanting to do anything which requires restarting the docker engine. e.g. installing plugins, changing drive sizes, defaults for DNS, etc. Some of these options are in the UI…


(Ben Collins) #17

I am running the latest beta and can see that the tray app has a UI to set some settings, which is helpful. However, in my case I some SSL certs that need to be trusted (I’m behind a transparent SSL proxy and need to trust its CA certs). Is there a way to do that?


(Vsri) #18

Hi Michael,

Is it enabled now? Will i be able to SSH to MobyLinuxVM with latest docker for windows beta release 1.13.0-beta38 (9805)


(Liwey) #19

Is it enabled now?
I want to change ip/port mapping but do not want to recreate the container.


(Traup) #20

Any update? I need to be able to ssh into the host machine ASAP.


(Michael Friis) #21

You can already mount the Docker socket, and instead of trying to use a binary from the Moby host, you can run a container that has the Docker CLI binary in it, like this one: https://hub.docker.com/_/docker/