<p>I was recently trying to create a docker container and connect it with my SQLDeveloper but I started facing some strange issues.
I downloaded the docker image using below pull request:</p>
<pre><code>docker pull store/oracle/database-enterprise:12.2.0.1-slim
</code></pre>
<p>then I started the container from my docker-desktop using port 1521. The container started with a warning.</p>
<p><img src="https://i.stack.imgur.com/YKUXA.png" alt="enter image description here" /></p>
<p>terminal message:</p>
<pre><code>docker run -d -it -p 1521:1521 --name oracle store/oracle/database-enterprise:12.2.0.1-slim
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
5ea14c118397ce7ef2880786ac1fac061e8c92f9b09070edffe365653dcc03af
</code></pre>
<p>Now when I try connect to db using below command :</p>
<pre><code>docker exec -it 5ea14c118397 bash -c &quot;source /home/oracle/.bashrc; sqlplus /nolog&quot;
SQL&gt; connect sys as sysdba;
Enter password: 
ERROR:
ORA-12547: TNS:lost contact
</code></pre>
<p>it shows this message, PASSWORD I USE IS Oradoc_db1.</p>
<p>Now after seeing some suggestions I tried using the below command for connecting to sqlplus:</p>
<pre><code> docker exec -it f888fa9d0247 bash -c &quot;source /home/oracle/.bashrc; sqlplus / as sysdba&quot;

SQL*Plus: Release 12.2.0.1.0 Production on Mon Sep 6 06:15:58 2021

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

ERROR:
ORA-12547: TNS:lost contact
</code></pre>
<p>I also tried changing permissions of oracle file in $ORACLE_HOME as well for execution permissions as well but it didn't work.</p>
<p>Please help me out as I am stuck and don't know what to do.</p>

harshit srivastava
<p>There are two issues here:</p>
<ol>
<li>Oracle Database is not supported on ARM processors, only Intel. See here: <a href="https://github.com/oracle/docker-images/issues/1814" rel="nofollow noreferrer">https://github.com/oracle/docker-images/issues/1814</a></li>
<li>Oracle Database Docker images are only supported with Oracle Linux 7 or Red Hat Enterprise Linux 7 as the host OS. See here: <a href="https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance" rel="nofollow noreferrer">https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance</a></li>
</ol>
<blockquote>
<p>Oracle Database ... is supported for Oracle Linux 7 and Red Hat Enterprise Linux (RHEL) 7. For more details please see My Oracle Support note: <strong>Oracle Support for Database Running on Docker (Doc ID 2216342.1)</strong></p>
</blockquote>
<p>The referenced My Oracle Support Doc ID goes on to say that the database binaries in their Docker image are built specifically for Oracle Linux hosts, and will also work on Red Hat. That's it.</p>
<p>Linux being what it is (flexible), lots of people have gotten the images to run on other flavors like Ubuntu with a bit of creativity, but only on x86 processors and even then the results are not guaranteed by Oracle: you won't be able to get support or practical advice when (and it's always <em>when</em>, not <em>if</em> in IT) things don't work as expected. You might not even be able to <em>tell</em> when things aren't working as they should. This is a case where creativity is not particularly rewarded; if you want it to work and get meaningful help, my advice is to use the <em>supported</em> hardware architecture and operating system version. Anything else is a complete gamble.</p>
