https://www.youtube.com/watch?v=7r1k-hJ_mo0
https://github.com/tibame201020/dockerImages
Executing the following script will install Docker, and Docker Compose. At the end, it will switch alternatives to manual mode (enter 1).
sudo apt update -y
sudo apt-get update -y
sudo apt install curl -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
sudo apt-get update && sudo apt-get install docker-compose-plugin -y
sudo update-alternatives --config iptables
or
sudo apt update -y
sudo apt-get update -y
sudo apt install curl -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
sudo apt-get update && sudo apt-get install docker-compose-plugin -y
echo "1" | sudo update-alternatives --config iptables
echo "1" | sudo update-alternatives --config iptables
sudo -e /etc/wsl.conf
[automount]
enabled = true
mountFsTab = true
[boot]
systemd=true
command=sudo systemctl start docker
exit or logout
wsl.exe --shutdown
sudo groupadd docker
sudo usermod -aG docker $USER
sudo /lib/systemd/systemd-sysv-install enable docker
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
sudo /lib/systemd/systemd-sysv-install enable docker
sudo service docker start
docker run hello-world
sudo apt install openssh-server -y
sudo service ssh start
hostname -I
sudo apt install maven -y
sudo apt install git -y
sudo apt install curl -y
sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update && sudo apt-get install nodejs -y
sudo apt install yarn -y