-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFdocker.sh
More file actions
25 lines (18 loc) · 912 Bytes
/
Copy pathFdocker.sh
File metadata and controls
25 lines (18 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
##FEDORA DOCKER INSTALLATION
## execute this file $chmod a+x docker.sh and $./docker.sh
## Upgrading system packages
yum update -y
## Install necessary dependencies:
dnf install curl git vim -y
## Add the official Docker GPG key:
dnf config-manager --add-repo=https://download.docker.com/linux/fedora/docker-ce.repo -y
dnf install docker-ce --nobest -y
systemctl enable --now docker
## Download the current stable release of Docker Compose:
curl -L "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
## Note: replace "v2.17.2" with the current stable release version if it has been updated since this answer was written
## Apply executable permissions to the Docker Compose binary
chmod +x /usr/local/bin/docker-compose
# Release note: https://github.com/docker/compose/releases
# [email protected] :)