-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-docker.sh
26 lines (22 loc) · 977 Bytes
/
install-docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Base URL for downloading the deb files
base_url="https://download.docker.com/linux/ubuntu/dists/oracular/pool/stable/amd64/"
# Array of file names for the deb packages
deb_files=(
"containerd.io_1.7.22-1_amd64.deb"
"docker-buildx-plugin_0.17.1-1~ubuntu.24.10~oracular_amd64.deb"
"docker-ce-cli_27.3.0-1~ubuntu.24.10~oracular_amd64.deb"
"docker-ce-cli_27.3.1-1~ubuntu.24.10~oracular_amd64.deb"
"docker-ce-rootless-extras_27.3.0-1~ubuntu.24.10~oracular_amd64.deb"
"docker-ce-rootless-extras_27.3.1-1~ubuntu.24.10~oracular_amd64.deb"
"docker-ce_27.3.0-1~ubuntu.24.10~oracular_amd64.deb"
"docker-ce_27.3.1-1~ubuntu.24.10~oracular_amd64.deb"
"docker-compose-plugin_2.29.6-1~ubuntu.24.10~oracular_amd64.deb"
"docker-compose-plugin_2.29.7-1~ubuntu.24.10~oracular_amd64.deb"
)
# Download each deb file
for file in "${deb_files[@]}"; do
wget "${base_url}${file}"
done
# Install all downloaded .deb files
sudo dpkg -i ./*.deb