Thanks to a ton of help from @Kevin.Collins I was able to achieve a pretty good Docker setup on my Windows 10 laptop. Following are the main steps I followed:
Enable WSL for Windows (Windows Features)
Install Linux images (Microsoft App Store - I used Ubuntu 20.04 LTS)
Make sure WSL version 2 is running
wsl -l -v(from powershell to determine the version)
wsl --set-default-version 2(from powershell to set version to 2)
Install Docker Desktop (for Windows) - this will also install Docker on the linux image and “set everything up to work pretty well”. I tried for a long time use Docker installed directly on the linux image, but was never able to launch the designer or clients from the Windows host.
Enable WSL Integration from the Docker Desktop Settings page.
Pull an image from Kevin’s Docker Hub. I did this from a linux command line.
Create a container with the image, once again from a linux command line.
docker run -p 9088:8088 -v test_vol:/var/lib/ignition/data --name test_ign -e GATEWAY_ADMIN_PASSWORD=password -e IGNITION_EDITION=full -e TZ='America/New_York' -d kcollins/ignition:8.0.3
— 9088 is the port to use from Windows to connect the the gateway, designer, and clients
— test_vol is the name of the directory that will contain
/var/lib/ignition/data. This folder can be found on the Windows box at
\\WSL$\docker-desktop-data\version-pack-data\community\docker\volumeswhile Docker is running.
America/New_Yorkis the timezone that the container will use.
Some improvements that I would prefer but have not been able to figure out:
- Mount the volume on the “main” Linux area, namely somewhere like
/home/user_dir/project_nameso that it is available even when Docker is not running.
- Eliminate the need for Docker Desktop and have the ability to launch the Designer from the Windows host.