A collection of tools for a more developer-friendly experience with docker
expose all containers with network aliases to the machines /etc/hosts file, so you dont need to take care about port bindings
dockerized tools
easy to use docker gui
is needed to access containers in docker-desktop environments or enables you to access your containers from your network in linux environments (usefully for mobile-testing)
- unzip
- docker
- docker-compose
- zsh or bash
- sufficient permissions to execute docker commands (adduser int docker group)
wget -q -O - "https://gitlab.com/clecherbauer/tools/docker-devkit/-/raw/master/linux/setup.sh" | bash
- Virtualization enabled in BIOS
- WSL2
- docker-desktop
- Ubuntu on WSL
This part will install WSL2, docker-desktop and docker-hosts.
-
Make sure Windows is fully updated (and rebooted), and you are running an administrative PowerShell.
-
Execute the following commands:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gitlab.com/clecherbauer/tools/docker-devkit/-/raw/master/windows/setup_dependencies.ps1'))
-
Wait - This step will take some time, so grab a cup of Coffee :)
-
Reboot your Machine
-
Go to the Microsoft App Store and pick Ubuntu 20.04 tutorial
-
wsl --install -d ubuntu
-
make ubuntu your default WSL Distro with
wsl --setdefault ubuntu
so you dont have to add-d ubuntu
everytime. -
Enable docker-desktop WSL Integration for your Ubuntu Distro, to do so please follow this.
(docker-desktop -> settings -> Resources -> WSL-Integration -> Enable integration with my default WSL distro)
This part will install docker-alias, direnv and xy
- Enable WSL Metadata:
wsl
sudo su
echo "[automount]" > /etc/wsl.conf
echo "options = \"metadata\"" >> /etc/wsl.conf
exit
exit
wsl --shutdown
- Restart Docker-Desktop
- Switch back into WSL Ubuntu:
wsl
. - Execute the following command:
wget -q -O - "https://gitlab.com/clecherbauer/tools/docker-devkit/-/raw/master/linux/setup.sh" | bash
- enabled virtualization
- docker-desktop