Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Docker»How To Install Docker on Fedora 35/34/33

    How To Install Docker on Fedora 35/34/33

    RahulBy RahulJanuary 18, 20193 Mins ReadUpdated:April 18, 2022

    Docker is container-based application framework, which wrap of a specific application with all its dependencies in a container. Docker containers can easily ship to a remote location on start there without making the entire application setup.

    This tutorial will help you to install Docker on Fedora Linux systems.

    Prerequisites

    For the standard installation, Docker required a 64-bit operating system having Kernel >= 3.10 version. Older versions of Kernel have some missing requirements to run all features of Docker.

    uname -r 
    
    4.16.5-300.fc28.x86_64
    

    Step 1 – Enable DNF Repository

    Let’s add the official Docker yum repository to your system. Also, update the package’s metadata cache.

    sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo 
    sudo dnf makecache 
    

    Step 2 – Install Docker on Fedora

    Now install the docker community edition package to install docker on your system. This is installed in many of the required decencies on your system.

    sudo dnf install docker-ce 
    

    After successful installation of the Docker engine, Let’s enable and start the docker service.

    sudo systemctl enable docker.service 
    sudo systemctl start docker.service 
    

    Then check the status of the Docker service.

    How to Install Docker on Fedora

    Docker has been installed and running on your system. You can visit our Docker tutorial section to work with Docker containers.

    How to Use Docker?

    Search Docker Images

    First of all search Docker container images from the Docker hub. For example, the below command will search all images with Fedora and list them as output

    sudo docker search fedora 
    

    Download Docker Images

    Now download the Docker container with the name Ubuntu on your local system using the following commands.

    sudo docker pull fedora 
    
    Output:
    Using default tag: latest latest: Pulling from library/fedora 0be2a68855d7: Extracting [==============================> ] 69.63MB/89.87MB

    Now make sure that above images have been downloaded successfully on your system. Below command list all images.

    sudo docker images
    
    Output:
    REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu latest 36248ae4a9ac 2 days ago 188 MB fedora latest 26ffec5b4a8a 2 weeks ago 275MB

    Launch New Container with Image

    Finally, launch a Docker container using the above-downloaded image on your system. Below command will start a new container.

    sudo docker run -i -t -d fedora /bin/bash 
    

    To view all running containers type

    sudo docker ps 
    
    Output:
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 695efa2ace69 fedora "/bin/bash" 58 seconds ago Up 56 seconds first_fedora

    By default Above command will list only running containers. To list all containers (including stopped containers) use the following command.

    docker ps -a 
    

    Start/Stop/Attach Container

    You can start, stop or attach to any containers with the following commands. To start the container use the following command.

    docker start CONTAINER_ID 
    

    To stop a container, type:

    sudo docker stop CONTAINER_ID
    

    To attach to the currently running container use the following command.

    sudo docker attach CONTAINER_ID 
    
    Docker Docker engine fedora
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Create SFTP User without Shell Access on CentOS/RHEL 7
    Next Article 3 Suggestions to Make Your Content Consistently Better

    Related Posts

    Top 5 Most Stable Linux Distributions in 2022

    Updated:January 11, 20226 Mins Read

    How to Install Anaconda on Fedora 35/34

    Updated:April 18, 20224 Mins Read

    Top 10 Best Linux Server Distributions in 2022

    Updated:April 1, 20228 Mins Read

    How To Install and Configure Drupal on Fedora 35/34

    Updated:February 15, 20224 Mins Read

    How to Disable SELinux on Fedora

    Updated:July 12, 20213 Mins Read

    How To Install TeamViewer on Fedora 35/34

    Updated:February 15, 20222 Mins Read

    4 Comments

    1. Dro87 on January 8, 2020 1:12 pm

      Hello,

      I did it on Fedora 30 and got back

      Error:
      Problem: conflicting requests
      – nothing provides libcgroup needed by docker-ce-3:19.03.0-3.fc30.x86_64
      – nothing provides container-selinux >= 2:2.74 needed by docker-ce-3:19.03.0-3.fc30.x86_64
      – nothing provides libcgroup needed by docker-ce-3:19.03.1-3.fc30.x86_64
      – nothing provides container-selinux >= 2:2.74 needed by docker-ce-3:19.03.1-3.fc30.x86_64

      From where do I install the missing containers? DNF update makes nothing, or Yum update

      Reply
    2. piotr on August 13, 2019 8:03 pm

      on fedora 30 work fine 😀

      Reply
    3. Apollo440 on July 25, 2019 3:41 pm

      When you make articles like this, DO NOT FORGET to add section about PROPER uninstalling!

      Reply
    4. Clément Duveau on July 9, 2019 12:47 pm

      As you can see in https://github.com/docker/for-linux/issues/600, today, 9th of July 2019, this method doesn’t work for Fedora 30.
      Regards

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.