WSL2 avec Ubuntu sur Windows 10
sudo apt-get update \
&& sudo apt-get install -y \
curl \
git \
python3 \
python-is-python3 \
python3-pip \
zip \
unzip \
jq \
software-properties-common \
build-essential
sudo ln -s /usr/bin/python3 /usr/local/bin/python
python -m pip install --user ansible
python -m pip install --user paramiko
python -m pip install --user docker
sudo apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
$(lsb_release -cs) stable
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo groupadd docker || true
sudo usermod -aG docker $USER
newgrp docker
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
sudo service docker start
sudo apt-get upgrade -y
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get autoclean
sudo rm -rf /var/lib/apt/lists/*