Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-amazon-acc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docker-amazon-acc
Commits
395e415a
Commit
395e415a
authored
Jun 28, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update install.sh
parent
4892725b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
install.sh
install.sh
+7
-4
No files found.
install.sh
View file @
395e415a
...
...
@@ -15,8 +15,11 @@ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg]
# Update package index again
apt update
# Install Docker version 24.0.2
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
# Specify Docker version
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
systemctl start docker
...
...
@@ -38,11 +41,11 @@ docker volume create portainer_data
docker run
-d
-p
80:9000
--name
=
portainer
--restart
=
always
\
-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
docker ps
-a
echo
"Docker 2
4
.0.2 and Portainer 1.20.2 have been installed successfully. Portainer is running on port 80."
echo
"Docker 2
6
.0.2 and Portainer 1.20.2 have been installed successfully. Portainer is running on port 80."
# End of script
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment