Since it was announced Adrian Png created a Docker image and I’ve been working with him help ensure that the data files can be preserved even when the container is destroyed.
Using the new Oracle XE 18c Docker script you can now build your own Docker image and run your Oracle XE as a container. I recommend that anyone planning to use Oracle XE on their laptop look at using this Docker image rather installing locally or a VM (more on this in a future article).
In the future Oracle may release its own official Docker image for Oracle XE. I will update this post when such an image is available.