Unable to SELECT data that is definitely there
Global temporary table was just a guess, because you had not posted the actual statement for table creation, and already said you used explicit commit. Using the information you gave us, we can only guess.
But here it is, works as expected:
[root@r5 ~]# docker pull epiclabs/docker-oracle-xe-11g
Using default tag: latest
latest: Pulling from epiclabs/docker-oracle-xe-11g
e92ed755c008: Pull complete
b9fd7cb1ff8f: Pull complete
ee690f2d57a1: Pull complete
53e3366ec435: Pull complete
51f7c9099c0d: Pull complete
1b7f09633195: Pull complete
4a8ff9746209: Pull complete
6bae0d820e30: Pull complete
Digest: sha256:

404173b90d09d0619c854dd469c76c3e7256c88a7aac5d47e05f934ec7afae06
Status: Downloaded newer image for epiclabs/docker-oracle-xe-11g:latest
docker.io/epiclabs/docker-oracle-xe-11g:latest
[root@r5 ~]# mkdir /storage/wdred_3tb_raid/mydata
[root@r5 ~]# docker run -d -v /storage/wdred_3tb_raid/mydata:/u01/app/oracle -p 1521:1521 epiclabs/docker-oracle-xe-11g
29f5bcbd1ccbf88d59111d653830098e6a965c602d07adfad5b331c7be8a4b95
[root@r5 ~]#

Test from other machine:
[oracle@o81 ~]$ sqlplus system/oracle@\&quot;r5/xe\&quot;

SQL*Plus: Release 19.0.0.0.0 - Production on Mon May 24 20:31:08 2021
Version 19.11.0.0.0

Copyright (c) 1982, 2020, Oracle.  All rights reserved.

ERROR:
ORA-28002: the password will expire within 7 days

Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL&gt; create user foo identified by foo default tablespace users quota unlimited on users;

User created.

SQL&gt; grant create table to foo;

Grant succeeded.

SQL&gt; create table foo.bar(c1 number);

Table created.

SQL&gt; insert into foo.bar select rownum from dual connect by level &lt;= 5;

5 rows created.

SQL&gt; commit;

Commit complete.

SQL&gt; select count(*) from foo.bar;

  COUNT(*)
----------
         5

SQL&gt; connect system/oracle@r5/xe
ERROR:
ORA-28002: the password will expire within 7 days


Connected.
SQL&gt; select count(*) from foo.bar;

  COUNT(*)
----------
         5

SQL&gt;