|
@@ -1,6 +1,6 @@
|
1
|
1
|
#!/bin/bash
|
2
|
2
|
|
3
|
|
-echo "🛠 Installing Docker and Docker Compose on Ubuntu..."
|
|
3
|
+echo "Installing Docker and Docker Compose on Ubuntu..."
|
4
|
4
|
|
5
|
5
|
# Step 1: Remove older Docker versions (if any)
|
6
|
6
|
sudo apt remove -y docker docker-engine docker.io containerd runc
|
|
@@ -38,7 +38,7 @@ sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin d
|
38
|
38
|
sudo systemctl enable docker
|
39
|
39
|
sudo systemctl start docker
|
40
|
40
|
|
41
|
|
-# Step 8: (Optional) Add current user to docker group (to avoid needing sudo)
|
|
41
|
+# Step 8:Add current user to docker group (to avoid needing sudo)
|
42
|
42
|
if ! groups $USER | grep -q docker; then
|
43
|
43
|
echo " Adding $USER to docker group..."
|
44
|
44
|
sudo usermod -aG docker $USER
|