Docker

New Year, New You

Well maybe not so much a new you. More like getting your personal “play” environments refreshed.

If you are anything like me, you want the latest and greatest in the setup where you play with great tech.

I have always had database, ORDS, APEX, SQLPLUS and so on installed in a VirtualBox VM. It has worked great and while I was hesitant to jump on the Docker train it is clear that not taking advantage of it in 2019 is being really far behind.

I will blog how I set up and use the Oracle XE 18c and the rest of other things. This time on Docker. This is not a deep dive in the greatness of Docker, there are plenty of those things around. Rather, this is more focused on getting it up and running, not on teaching everything about it.

To me, getting it up so it can be used is a good way to learn. Thus, I will blog my learning as I get my environment set up.

To start for this post, let’s just get Docker installed and validated. Next post adds to it to have an Oracle Database XE 18c installed with CDB+PDB available.

Instead of repeating the instructions to just get Docker installed, follow these links depending on your platform.

Docker:
On Mac/Windows
Just follow the instructions on docker.com

On OEL
https://blogs.oracle.com/blogbypuneeth/a-simple-guide-to-docker-installation-on-oracle-linux-75

For other linuxes just google “docker install”. I did it for Ubuntu to install it and just followed the instructions. When/if you have a choice to pick docker-engine or Docker CE, you should always pick Docker CE as it is a more current build.

För environments that are not set up this way automatically, you can allow commands being run without being root. This is to not have to enter sudo in front of many docker commands.

sudo usermod -aG docker your-user

Reboot your computer to make sure all things are set up. To test it you can issue “docker run hello-world”.

It should produce output like:
Hello from Docker!

That is it, you now have docker installed and are ready to hang with the cool developers. 🙂

If you want to go through a short intro to what docker is and how it works, then Docker has a nice set of short articles you can go through in an hour. Look at the “Get Started” area on https://docs.docker.com/.

Leave a Comment

Your email address will not be published. Required fields are marked *

*