Skip to content

Commit c38a816

Browse files
committed
Update docker install for centos
1 parent 3199f78 commit c38a816

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

_liberty/technical/installation.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ sudo yum update -y
5757
Install the necessary packages required to set up the Docker repository.
5858

5959
```bash
60-
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
60+
sudo yum install -y yum-utils
6161
```
6262

6363
### Step 3: Set Up the Docker Repository
@@ -73,7 +73,7 @@ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/dock
7373
Install Docker Engine, CLI, and Containerd.
7474

7575
```bash
76-
sudo yum install -y docker-ce docker-ce-cli containerd.io
76+
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
7777
```
7878

7979
### Step 5: Start and Enable Docker
@@ -95,27 +95,8 @@ sudo docker run hello-world
9595

9696
If the container runs and displays a welcome message, Docker is installed correctly.
9797

98-
### Step 7: Install Docker Compose
9998

100-
Download the current stable release of Docker Compose:
101-
102-
```bash
103-
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*?(?=")')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
104-
```
105-
106-
Apply executable permissions to the binary:
107-
108-
```bash
109-
sudo chmod +x /usr/local/bin/docker-compose
110-
```
111-
112-
Verify that the installation was successful:
113-
114-
```bash
115-
docker-compose --version
116-
```
117-
118-
### Step 8: Adding Your User to the Docker Group (Optional)
99+
### Step 7: Adding Your User to the Docker Group (Optional)
119100

120101
To run Docker commands without `sudo`, add your user to the Docker group.
121102

@@ -130,10 +111,9 @@ Log out and log back in to apply the group changes.
130111
To remove Docker, the CLI, Containerd, and Docker Compose, use the following commands:
131112

132113
```bash
133-
sudo yum remove docker-ce docker-ce-cli containerd.io
114+
sudo yum remove docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
134115
sudo rm -rf /var/lib/docker
135116
sudo rm -rf /var/lib/containerd
136-
sudo rm /usr/local/bin/docker-compose
137117
```
138118

139119
## Docker Installation for Amazon Linux OS

0 commit comments

Comments
 (0)