Last active
March 8, 2016 03:07
-
-
Save aorjoa/9c7e60b6bc00fffc5515 to your computer and use it in GitHub Desktop.
Run docker inside android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dd if=/dev/zero of=./btrfs.bin count=1000k | |
| mknod /dev/btrfs_data b 7 2 | |
| losetup /dev/btrfs_data ./btrfs.bin | |
| mkfs.btrfs -f -n 4096 /dev/btrfs_data |
awk '!/^#/ { if ($4 == 1) print $1 }' /proc/cgroups | xargs mkdir
export DOCKER_RAMDISK=true
Force ipv4
root@hammerhead:/ # echo '1' > /proc/sys/net/ipv6/conf/lo/disable_ipv6
root@hammerhead:/ # echo '1' > /proc/sys/net/ipv6/conf/lo/disable_ipv6
root@hammerhead:/ # echo '1' > /proc/sys/net/ipv6/conf/all/disable_ipv6
root@hammerhead:/ # echo '1' > /proc/sys/net/ipv6/conf/default/disable_ipv6
docker run -d --net=host -v /data/local/tmp/www-site/:/usr/share/nginx/html/ aiyara/nginx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mount -n -t cgroup -o cpuset cgroup cpuset
mount -n -t cgroup -o blkio cgroup blkio
mount -n -t cgroup -o cpuacct cgroup cpuacct
mount -n -t cgroup -o debug cgroup debug
mount -n -t cgroup -o freezer cgroup freezer
mount -n -t cgroup -o net_cls cgroup net_cls
mount -n -t cgroup -o net_prio cgroup net_prio
mount -n -t cgroup -o perf_event cgroup perf_event