Mount remote docker instance to my OSX file system

10/29/2015

I need to be able to develop on osx off a docker instance running on a remote server.

The docker instance would be running on Google compute engine using kubernetes.

On my OSX I need to be able to mount the docker file system so that I can code in Atom ( for example ) and also have terminal so I can run run git tool etc.

The reason being, so that I can easily and quickly do cross device testing of mobile web apps.

I am wondering if I can do this ?

I noticed the remote api is stable now, so this seems doable. but am looking for tip / URLs from others to help me set this up for myself and the team. It will make development alot smoother.

Thanks in advance.

-- Gedw99
docker
kubernetes
ssh

1 Answer

11/16/2015

You can enter into the context of the container using kubectl exec:

http://kubernetes.io/v1.1/docs/user-guide/getting-into-containers.html

However, we don't yet have a mechanism to make it easy to retrieve a saved Docker image.

You'd need to ssh into the node in order to do that.

If you'd like better support for your use case, please file a feature request with as many details about your scenario as you can: https://github.com/kubernetes/kubernetes/issues/new

-- briangrant
Source: StackOverflow