Needs to be at least 4GB
diskutil list # note the devices seen
# insert flash drive
diskutil list # note the new device seen, e.g. /dev/disk2
diskutil unmountDisk /dev/diskN
sudo dd if=ubuntu-14.04-server-amd64.iso of=/dev/rdiskN bs=1m
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
| #!/bin/bash | |
| # Adaptation of script from eclipse.org http://wiki.eclipse.org/How_to_report_a_deadlock#jstackSeries_--_jstack_sampling_in_fixed_time_intervals_.28tested_on_Linux.29 | |
| if [ $# -eq 0 ]; then | |
| echo >&2 "Usage: jstackSeries <pid>" | |
| echo >&2 " Defaults: count = 10, delay = 1 (seconds)" | |
| exit 1 | |
| fi | |
| pid=$1 # required |