12/27/2021

Oracle Linux Docker Install

90
  • To install and configure the Docker Engine on an Oracle Linux 6 system: If you want to install Docker, configure the system to use the Unbreakable Enterprise Kernel Release 4 (UEK R4) and boot the system with this kernel.
  • Jul 15, 2017 In the example below, I'm using Oracle Linux yum server to provide the software updates. With a few quick steps, you'll be able to install the latest Docker release. First, update your Oracle Linux 7 instance with correct yum setting. To install the latest Docker release (17.03.1.ce), you need ol7latest, ol7uekr4 and ol7addons enabled.

Oracle Linux is an open-source server Linux distro and a good alternative to CentOS and RHEL Linux distributions. Moreover, as CentOS 8 Linux life will end this year, in such scenarios Oracle Linux 8 is a viable option. Of course, there are some other projects in progress to provide alternatives to CentOS such as Rocky Linux, however, they are still in the incubation period.

–From host OS: Docker ps and Docker inspect containername.Find out Service name –From interactive shell: Lsnrctl services.Set up TNSNAMES.ORA and SQLNET.ORA in client.Then connect as usual Connect to the database from outside Oracle clients (eg other containers) 27.

Well, here we are going to discuss the steps to install the Docker Community Edition on Oracle Linux to create containers. Docker is the containerized platform that allows users to run multiple isolated virtual machines using the docker images. You can create your own image or use any of the available on Docker Hub.

Install

Contents

  • Install Docker Engine on Oracle Linux 8 or 7

Install Docker Engine on Oracle Linux 8 or 7

1. Run system update

Install

First of all, run the system update command to rebuild the repo cache and update installed packages.

2. Install Yum Config-manager

To add a repository without going through the repo file and edit to insert a repository URL, we can use the yum-config-manager tool. If you are using a minimal server version then you perhaps not have it. Thus, here is the command to install it.

3. Add Docker repository to Oracle Linux

Well, as Oracle is just like CentOS, thus we can use the CentOS repository officially available for users by Docker developers. And here is the command to add the same on Oracle Linux 8 or 7.

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

Run system update:

4. Command to install Docker-Ce on Oracle Linux

Linux

To install Docker Engine, command line and contained (a standalone high-level container runtime) run, finally, this command…

OutPut:

5. Enable and start docker service

Once the docker is installed run its daemon and mark it enabled, so that it can start automatically with system boot.

6. Check Docker is running

7. Add User to Docker group

Oracle Linux Docker Install

By default, docker needs the root access to run commands, thus without using sudo, you will get this error:

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=ubuntu&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

Docker

Therefore, we add our current or the user that you want to use to access docker to the docker group, hence we won’t need sudo usage with docker commands.

Note: Replace the your_userwith your user. If you don’t know what is your username then run:

whoami

Test docker again without sudo

docker pull ubuntu

Oracle Linux 7.5 Install Docker

Run it :

Docker Install Ubuntu

docker run -it ubuntu

  • Most Viewed News

    • Watched App For Mac
    • Install Nextcloud On Docker
    • Stadia Mac Download
    • Mac Os 32 Bit Iso Download