# Access/switch Alpine VM

**URL:** <https://forums.docker.com/t/access-switch-alpine-vm/8630>\
**Category:** Docker Desktop\
**Created:** [April 7, 2016, 12:41pm UTC](https://forums.docker.com/t/access-switch-alpine-vm/8630 "2016-04-07T12:41:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmoriz](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rmoriz/32/6957_2.png) [@rmoriz](https://forums.docker.com/u/rmoriz)\
**Post date:** [April 7, 2016, 12:41pm UTC](https://forums.docker.com/t/access-switch-alpine-vm/8630/1 "2016-04-07T12:41:35Z")

</div>

Hi,

is there a way to:

a) access the Alpine VM that comes with Docker for Mac (“Moby”)  
b) switch the used image? e.g. where can I find the sources for “Moby”? (GPL?)

I’ll need a specific kernel module loaded in the (host) kernel.

---

<div class="post-metadata">

**Author:** ![justincormack](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/justincormack/32/6760_2.png) [@justincormack](https://forums.docker.com/u/justincormack)\
**Post date:** [April 7, 2016, 2:27pm UTC](https://forums.docker.com/t/access-switch-alpine-vm/8630/2 "2016-04-07T14:27:13Z")

</div>

Hi we plan to fully open source the Linux distro soon. We can of course provide all sources, any kernel patches will be in the distro in `/etc/`. The current beta is vanilla 4.4.6+aufs, you can get the kernel config with:

`docker run --privileged --pid=host alpine zcat /proc/1/root/proc/config.gz`

You can in theory replace the kernel image in the application bundle with a new one, but we won’t be able to help with bugs - we are trying to fix the issues with a vanilla setup…

We can add more mainstream config options if they are generally appropriate - what do you need?

---

<div class="post-metadata">

**Author:** ![rmoriz](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rmoriz/32/6957_2.png) [@rmoriz](https://forums.docker.com/u/rmoriz)\
**Post date:** [April 7, 2016, 2:38pm UTC](https://forums.docker.com/t/access-switch-alpine-vm/8630/3 "2016-04-07T14:38:41Z")

</div>

> [@justincormack](#):
>
> We can add more mainstream config options if they are generally appropriate - what do you need?

Thanks for your help!

Unfortunately it’s not a mainstream option and requires custom patching + custom userspace daemon. Currently we have a modified “boot2docker”-distro image and use VMWare Fusion with docker-machine but are very unhappy with the recent development of Fusion. So xhyve-based Docker for Mac looks very compelling.

---

<div class="post-metadata">

**Author:** ![justincormack](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/justincormack/32/6760_2.png) [@justincormack](https://forums.docker.com/u/justincormack)\
**Post date:** [April 7, 2016, 2:47pm UTC](https://forums.docker.com/t/access-switch-alpine-vm/8630/4 "2016-04-07T14:47:02Z")

</div>

We are not going to help with this type of request at present as we want to get the mainstream features working, but you should be able to run a daemon via a privileged container fairly easily, and you can change the kernel, or add modules, but you will have to work it out on your own.

---

<div class="post-metadata">

**Author:** ![rmoriz](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rmoriz/32/6957_2.png) [@rmoriz](https://forums.docker.com/u/rmoriz)\
**Post date:** [April 7, 2016, 2:48pm UTC](https://forums.docker.com/t/access-switch-alpine-vm/8630/5 "2016-04-07T14:48:50Z")

</div>

> [@justincormack](#):
>
> We are not going to help with this type of request at present as we want to get the mainstream features working, but you should be able to run a daemon via a privileged container fairly easily, and you can change the kernel, or add modules, but you will have to work it out on your own.

As long as I know what I need to build, I can do it myself. That’s why I asked for the sources 😉

---

<div class="post-metadata">

**Author:** ![justincormack](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/justincormack/32/6760_2.png) [@justincormack](https://forums.docker.com/u/justincormack)\
**Post date:** [April 7, 2016, 2:54pm UTC](https://forums.docker.com/t/access-switch-alpine-vm/8630/6 "2016-04-07T14:54:28Z")

</div>

You can get the full sources for all the code on the running VM in a directory called `output/` with:

`docker run -it -v /etc:/hostetc -v /lib:/lib -v $(PWD)/output:/output justincormack/mobysources`

The kernel patches at present are just the latest upstream aufs for the kernel version, this may change though next beta.
