- Windows 10
- WSL: Ubuntu 16.04 LTS (from Microsoft Store)
- docker community edition (
docker-ce
) v17.09.0
Install docker community edition as instucted with the official procedure.
You should install docker-ce before version 17.09.0.
You can get the package from https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/ .
Run cgroupfs-mount
.
$ sudo cgroupfs-mount
Run hello-world container on WSL terminal with Administrator privillege.
$ sudo docker run hello-world
Troubleshooting
proxy settings
/etc/environment
/etc/default/docker
failed to register layer: Error processingtar file(exit status 1): remount /, flags: 0x84000: invalid argument.
You should install docker-ce before version 17.09.0.
You can get the package from https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/
- https://www.reddit.com/r/bashonubuntuonwindows/comments/8cvr27/docker_is_running_natively_on_wsl/dxxn30d/
- https://qiita.com/guchio/items/3eb0818df44fdbab3d14
failed docker-compose up
https://gdgd-shinoyu.hatenablog.com/entry/2018/07/10/032023
$ docker-compose up
Creating network "splunkoidemo_default" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable NAT rule: (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.18.0.0/16 ! -o br-9742ab0babb7 -j MASQUERADE: iptables: Invalid argument. Run `dmesg' for more information.
(exit status 1))