Commit 395e415a authored by Administrator's avatar Administrator

Update install.sh

parent 4892725b
...@@ -15,8 +15,11 @@ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] ...@@ -15,8 +15,11 @@ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg]
# Update package index again # Update package index again
apt update apt update
# Install Docker version 24.0.2 # Specify Docker version
apt install -y docker-ce=5:24.0.2-1~ubuntu.20.04~focal docker-ce-cli=5:24.0.2-1~ubuntu.20.04~focal containerd.io DOCKER_VERSION=5:26.0.2-1~ubuntu.24.04~noble
# Install Docker with the specified version
apt install -y docker-ce=$DOCKER_VERSION docker-ce-cli=$DOCKER_VERSION containerd.io
# Start and enable Docker # Start and enable Docker
systemctl start docker systemctl start docker
...@@ -38,11 +41,11 @@ docker volume create portainer_data ...@@ -38,11 +41,11 @@ docker volume create portainer_data
docker run -d -p 80:9000 --name=portainer --restart=always \ docker run -d -p 80:9000 --name=portainer --restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \ -v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data portainer/portainer -v portainer_data:/data portainer/portainer:1.20.2
# Verify Portainer installation # Verify Portainer installation
docker ps -a docker ps -a
echo "Docker 24.0.2 and Portainer 1.20.2 have been installed successfully. Portainer is running on port 80." echo "Docker 26.0.2 and Portainer 1.20.2 have been installed successfully. Portainer is running on port 80."
# End of script # End of script
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment