Skip to content

Instantly share code, notes, and snippets.

@zavalit
Created April 6, 2016 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zavalit/65e8a260866f834223616c1b59e4ce7d to your computer and use it in GitHub Desktop.
Save zavalit/65e8a260866f834223616c1b59e4ce7d to your computer and use it in GitHub Desktop.
Working volume mount on MacOSX host
[
{
"Id": "d5c97bc65ca01f1717681503ead40607e1cfc6dcde4a323d4bee90b00b81330d",
"Created": "2016-04-06T09:31:54.490797795Z",
"Path": "/bin/bash",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 16099,
"ExitCode": 0,
"Error": "",
"StartedAt": "2016-04-06T09:31:54.579976003Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:a1e4ed2ac65bee68a8f0b63304b6ebdbb14fedee94b76aa6680f243dd722f50a",
"ResolvConfPath": "/mnt/sda1/var/lib/docker/containers/d5c97bc65ca01f1717681503ead40607e1cfc6dcde4a323d4bee90b00b81330d/resolv.conf",
"HostnamePath": "/mnt/sda1/var/lib/docker/containers/d5c97bc65ca01f1717681503ead40607e1cfc6dcde4a323d4bee90b00b81330d/hostname",
"HostsPath": "/mnt/sda1/var/lib/docker/containers/d5c97bc65ca01f1717681503ead40607e1cfc6dcde4a323d4bee90b00b81330d/hosts",
"LogPath": "/mnt/sda1/var/lib/docker/containers/d5c97bc65ca01f1717681503ead40607e1cfc6dcde4a323d4bee90b00b81330d/d5c97bc65ca01f1717681503ead40607e1cfc6dcde4a323d4bee90b00b81330d-json.log",
"Name": "/evil_knuth",
"RestartCount": 0,
"Driver": "aufs",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/Users/zavalit/Projects/phping.me/code/www/test:/var/www:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"ShmSize": 67108864,
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"KernelMemory": 0,
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": -1,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null
},
"GraphDriver": {
"Name": "aufs",
"Data": null
},
"Mounts": [
{
"Source": "/Users/zavalit/Projects/phping.me/code/www/test",
"Destination": "/var/www",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "d5c97bc65ca0",
"Domainname": "",
"User": "",
"AttachStdin": true,
"AttachStdout": true,
"AttachStderr": true,
"Tty": true,
"OpenStdin": true,
"StdinOnce": true,
"Env": [],
"Cmd": [
"/bin/bash"
],
"Image": "ubuntu",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {},
"StopSignal": "SIGTERM"
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "727e164f40c9f3302984b73190a551f5582193e12e9a0b1ab6e971acb4254411",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/727e164f40c9",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "f8c7fd04622bad5ed308a3e766a08346c7ba53a139b852c9bf03c99fcd486658",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:03",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "7703bcc12e2e15874e41e577cfb5a0e3bb7f8aa2355f46614214340c0eebd45d",
"EndpointID": "f8c7fd04622bad5ed308a3e766a08346c7ba53a139b852c9bf03c99fcd486658",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:03"
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment