Docker community edition on WSL

August 14, 2019
WSL Docker

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

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/

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))