Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
deploy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
public
deploy
Commits
c7feaa4e
Commit
c7feaa4e
authored
Jul 16, 2021
by
蔡润涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
bd6e7687
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
install-docker.sh
install-docker.sh
+42
-0
No files found.
install-docker.sh
0 → 100644
View file @
c7feaa4e
#!/bin/bash
# Created by Abraão Silva
# Install docker in centos
# Remove any old versions
sudo
yum remove docker docker-common docker-selinux docker-engine
# Install required packages
sudo
yum install
-y
yum-utils device-mapper-persistent-data lvm2
# Configure docker repository
sudo
yum-config-manager
--add-repo
https://download.docker.com/linux/centos/docker-ce.repo
# Install Docker-ce
sudo
yum install docker-ce
-y
# Start Docker
sudo
systemctl start docker
sudo
systemctl
enable
docker
# Post Installation Steps
# Create Docker group
sudo
groupadd docker
# Add user to the docker group
sudo
usermod
-aG
docker
$USER
echo
"Installation Complete -- Logout and Log back"
# Install docker-compose
curl
-L
"https://github.com/docker/compose/releases/download/1.25.3/docker-compose-
$(
uname
-s
)
-
$(
uname
-m
)
"
-o
/usr/local/bin/docker-compose
# Permssion +x execute binary
chmod +x /usr/local/bin/docker-compose
# Create link symbolic
ln
-s
/usr/local/bin/docker-compose /usr/bin/docker-compose
# Check Version docer-compose
echo
"Installation Complete -- Logout and Log back"
docker-compose
--version
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