13 lines
449 B
Bash
13 lines
449 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
sudo rm /etc/machine-id
|
|
sudo dbus-uuidgen --ensure=/etc/machine-id
|
|
|
|
if grep -q 'microsoft-standard\|standard-WSL' /proc/version; then
|
|
# The docker daemon does not start when running WSL2 without adjusting iptables
|
|
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy || echo "Fails adjust iptables"
|
|
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy || echo "Fails adjust ip6tables"
|
|
fi
|