19-04-2021



Home » Articles » Linux » Here. Docker: Install Docker on Oracle Linux 8 (OL8) This article demonstrates how to install Docker on Oracle Linux 8 (OL8). RHEL8, and therefore OL8, have switched their focus from Docker and on to Podman for containers, so this installation uses the Docker CE installation from the Docker repository. Amazon Linux provides a stable, secure, and high-performance execution environment for applications. To install within your Docker container you can run command. Docker exec apt-get update && apt-get install -y vim. But this will be limited to the container in which vim is installed. To make it available to all the containers, edit the Dockerfile and add. RUN apt-get update && apt-get install -y vim. # docker run -i rhel:latest /bin/bash -c 'yum clean all; yum install -y httpd; yum clean all' Commit the new image: Get the new container’s ID or name ( docker ps -l ), then commit that container to your local repository. Then I deleted all docker-related packages (sudo apt remove -purge containerd.io docker-ce docker-ce-cli docker-ce-rootless-extras pigz slirp4netns) and installed them again (sudo apt-get install docker-ce docker-ce-cli containerd.io). This time, the installation failed.

8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » Linux » Here

This article demonstrates how to install Docker on Oracle Linux 8 (OL8). RHEL8, and therefore OL8, have switched their focus from Docker and on to Podman (here) for containers, so this installation uses the Docker CE installation from the Docker repository.

Related articles.

Assumptions

This article makes the following assumptions.

  • You have a server (physical or virtual) with Oracle Linux 8 (OL8) installed. This is described here.
  • You have a separate partition to hold the images and containers. In this article we have a separate virtual disk.
Docker

Install Docker

Enable all the required repositories. To do this you are going to need the yum-utils package.

Install Docker.

Configure Disk (Optional)

By default the containers are created under the '/var/lib/docker', so you really need to house this on a separate disk or in a separate partition.

I have a second LUN with a device named '/dev/sdb'. I could build the file system on this disk directly, but I prefer to partition the disks with a single partition using fdisk..

Finish Docker Setup

Dockerfile Run Yum Install

Enable and start the Docker service.

You can get information about docker using the following commands.

You are now ready to start using Docker!

Docker Run Yum Install Centos

Docker Commands as Non-Root User

Docker commands run as the 'root' user. You have three choices when if comes to running docker commands.

  • Run the docker commands from the root user.
  • Allow another user to perform 'sudo' on the docker command, so all commands are run using 'sudo docker ...'.
  • Create a group called docker and assign that to the user you want to run docker commands from. The documentation says, 'Warning: The docker group grants privileges equivalent to the root user', so we should avoid this.

In this case we want to run the docker commands from a user called 'docker_user', so we add an entry in the '/etc/sudoers' file and use an alias in the user's '.bash_profile' file so we don't have to keep typing the 'sudo' command.

For more information see:

Hope this helps. Regards Tim...