User Tools

Site Tools


docker-rhel9

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docker-rhel9 [2023/10/23 08:37] – created baumidocker-rhel9 [2024/02/06 09:18] (current) baumi
Line 1: Line 1:
-====== Docker on RHEL (Red Hat Enterprise Linux ======+====== Docker Installation on RHEL (Red Hat Enterprise Linux====== 
 + 
 +===== Installation =====
  
 Copied from: https://www.linkedin.com/pulse/step-by-step-guide-installing-docker-rhel-9-locally-ujjawal-kumar Copied from: https://www.linkedin.com/pulse/step-by-step-guide-installing-docker-rhel-9-locally-ujjawal-kumar
  
   - <code>sudo yum update</code>   - <code>sudo yum update</code>
-2. sudo yum remove docker \+  - <code>sudo yum remove docker \
  docker-client \  docker-client \
  docker-client-latest \  docker-client-latest \
Line 12: Line 14:
  docker-logrotate \  docker-logrotate \
  docker-engine  docker-engine
-3. sudo yum install -y yum-utils device-mapper-persistent-data lvm2 +</code> 
-4. sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo +  - <code>sudo yum install -y yum-utils device-mapper-persistent-data lvm2</code> 
-5. sudo yum install docker-ce +  - <code>sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo</code> 
-6.1 sudo systemctl start docker +  - <code>sudo yum install docker-ce</code> 
-6.2 sudo systemctl enable docker +  - <code>sudo systemctl start docker</code> 
-7. sudo docker --version +  - <code>sudo systemctl enable docker</code> 
-8. sudo docker run hello-world +  - <code>sudo docker --version</code> 
-9. sudo usermod -aG docker $(whoami)+  - <code>sudo docker run hello-world</code> 
 +  - <code>sudo usermod -aG docker $(whoami)</code> 
 + 
 +===== Upgrade ===== 
 +<code bash> 
 +sudo yum --disablerepo="*" --enablerepo="docker-ce-stable" update 
 +</code> 
 + 
 + 
 +{{tag>kb linux docker}} 
  
docker-rhel9.1698043066.txt.gz · Last modified: 2023/10/23 08:37 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki