Skip to content

Instantly share code, notes, and snippets.

#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main() {
int a[4];
srand(time(NULL));
int i = 0;
while(i < 4) {
a[i] = rand() % 10;

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.