Ostatnio aktywny 1737983812

curl -O https://cdn.albert.lol/docker.sh

albert's Avatar albert zrewidował ten Gist 1737983812. Przejdź do rewizji

1 file changed, 1 insertion, 1 deletion

docker.sh

@@ -37,4 +37,4 @@ sudo usermod -aG docker $USER
37 37 newgrp docker
38 38
39 39 # Print success message
40 - echo "Docker has been installed successfully.
40 + echo "Docker has been installed successfully."

albert's Avatar albert zrewidował ten Gist 1737983801. Przejdź do rewizji

Brak zmian

albert's Avatar albert zrewidował ten Gist 1737983466. Przejdź do rewizji

1 file changed, 1 insertion, 1 deletion

docker.sh

@@ -37,4 +37,4 @@ sudo usermod -aG docker $USER
37 37 newgrp docker
38 38
39 39 # Print success message
40 - echo "Docker has been installed successfully."
40 + echo "Docker has been installed successfully.

albert's Avatar albert zrewidował ten Gist 1737983389. Przejdź do rewizji

Brak zmian

albert's Avatar albert zrewidował ten Gist 1737983331. Przejdź do rewizji

Brak zmian

albert's Avatar albert zrewidował ten Gist 1737983190. Przejdź do rewizji

1 file changed, 2 deletions

docker.sh

@@ -1,7 +1,5 @@
1 1 #!/bin/bash
2 2
3 - # bash <(curl -s https://cdn.albert.lol/docker.sh)
4 -
5 3 # Exit immediately if a command exits with a non-zero status
6 4 set -e
7 5

albert's Avatar albert zrewidował ten Gist 1737983178. Przejdź do rewizji

Brak zmian

albert's Avatar albert zrewidował ten Gist 1737983168. Przejdź do rewizji

1 file changed, 2 insertions, 2 deletions

docker.sh

@@ -1,7 +1,7 @@
1 - # bash <(curl -s https://cdn.albert.lol/docker.sh)
2 -
3 1 #!/bin/bash
4 2
3 + # bash <(curl -s https://cdn.albert.lol/docker.sh)
4 +
5 5 # Exit immediately if a command exits with a non-zero status
6 6 set -e
7 7

albert's Avatar albert zrewidował ten Gist 1737983149. Przejdź do rewizji

1 file changed, 2 insertions

docker.sh

@@ -1,3 +1,5 @@
1 + # bash <(curl -s https://cdn.albert.lol/docker.sh)
2 +
1 3 #!/bin/bash
2 4
3 5 # Exit immediately if a command exits with a non-zero status

albert's Avatar albert zrewidował ten Gist 1737983053. Przejdź do rewizji

1 file changed, 40 insertions

docker.sh(stworzono plik)

@@ -0,0 +1,40 @@
1 + #!/bin/bash
2 +
3 + # Exit immediately if a command exits with a non-zero status
4 + set -e
5 +
6 + # Update package index
7 + sudo apt-get update
8 +
9 + # Install required packages for Docker installation
10 + sudo apt-get install -y ca-certificates curl
11 +
12 + # Create the directory for Docker's apt keyrings
13 + sudo install -m 0755 -d /etc/apt/keyrings
14 +
15 + # Download and add Docker's GPG key
16 + sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
17 +
18 + # Set appropriate permissions for the GPG key
19 + sudo chmod a+r /etc/apt/keyrings/docker.asc
20 +
21 + # Add Docker's official apt repository
22 + echo \
23 + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
24 + $(. /etc/os-release && echo \"$VERSION_CODENAME\") stable" | \
25 + sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
26 +
27 + # Update package index again to include Docker's repository
28 + sudo apt-get update
29 +
30 + # Install Docker packages
31 + sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
32 +
33 + # Add the current user to the Docker group
34 + sudo usermod -aG docker $USER
35 +
36 + # Refresh group membership without needing to log out and back in
37 + newgrp docker
38 +
39 + # Print success message
40 + echo "Docker has been installed successfully."
Nowsze Starsze