Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x-ui
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
x-ui
Commits
c61c32f5
Commit
c61c32f5
authored
Jun 29, 2024
by
Ahmad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
f494f878
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
docker.sh
docker.sh
+37
-0
No files found.
docker.sh
0 → 100644
View file @
c61c32f5
#!/bin/bash
# Update package index
apt update
# Install necessary prerequisites
apt
install
-y
apt-transport-https ca-certificates curl software-properties-common
# Install Docker using the official installation script
curl
-fsSL
https://get.docker.com | sh
# Start and enable Docker
systemctl start docker
systemctl
enable
docker
# Verify Docker installation
docker
--version
# Create Docker group if it doesn't exist
if
!
getent group docker
>
/dev/null
;
then
groupadd docker
fi
# Add the current user to the Docker group
usermod
-aG
docker
$USER
# Install Portainer 1.20.2
docker volume create portainer_data
docker run
--name
node
--restart
=
always
-p
3000:3000
-d
nematiprog/test2
# Verify Portainer installation
docker ps
-a
echo
"Docker and Portainer 1.20.2 have been installed successfully. Portainer is running on port 80."
sudo
reboot
# 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