See the Persistent Storage section about the setup of the host volume. Now the data files reside outside the container. We can solve this problem by creating a directory on the host file system and mounting it to "/u02" in the container. In the previous example the storage is not persistent, so if the container were removed the database files would be lost. It gives the container a name (ol7_19_con), binds a host port to the exposed container port. The simplest way to run a container based on this image is to accept all the defaults and run the following command. The database is created the first time the container is started, which means it can take some time for the container to be fully operational, especially because we are also doing an APEX installation into the database. That is done on the first run of a container. You will notice the build phase doesn't create a database.
#Oracle database image software
#Oracle database image download
You will have to download the Oracle 19c database and APEX software yourself and place it in the "software" directory. The build expects the following file system. The Dockerfile and scripts this article is based upon can be found here. If you want something more generic, you might was to check out the builds and images from Oracle here. It's not meant to be a definitive or supported build.
#Oracle database image how to
You can see how to install Docker on OL7 here. Oracle products are supported on Docker if the host OS is Oracle Linux 7, but you don't need to use an OL7 host for this to work.