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
4892725b
Commit
4892725b
authored
Jun 28, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update install.sh
parent
6e216834
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
install.sh
install.sh
+15
-6
No files found.
install.sh
View file @
4892725b
...
...
@@ -4,10 +4,19 @@
apt update
# Install necessary prerequisites
apt
install
-y
apt-transport-https ca-certificates curl software-properties-common
apt
install
-y
apt-transport-https ca-certificates curl software-properties-common
gnupg-agent
# Install Docker using the official installation script
curl
-fsSL
https://get.docker.com | sh
# Add Docker’s official GPG key
curl
-fsSL
https://download.docker.com/linux/ubuntu/gpg |
sudo
gpg
--dearmor
-o
/usr/share/keyrings/docker-archive-keyring.gpg
# Add Docker APT repository
echo
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu
$(
lsb_release
-cs
)
stable"
|
sudo tee
/etc/apt/sources.list.d/docker.list
>
/dev/null
# 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
# Start and enable Docker
systemctl start docker
...
...
@@ -24,16 +33,16 @@ fi
# Add the current user to the Docker group
usermod
-aG
docker
$USER
# Install Portainer
# Install Portainer
1.20.2
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
-ce
-v
portainer_data:/data portainer/portainer
# Verify Portainer installation
docker ps
-a
echo
"Docker
and Portainer
have been installed successfully. Portainer is running on port 80."
echo
"Docker
24.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