Connection reset: set up Oracle SSL in docker
<p>I am setting up an Oracle SSL instance inside a docker.</p>

<p>I am using this docker image:
<a href="https://hub.docker.com/r/rafaelmariotti/oracle-ee-11g/" rel="nofollow noreferrer">https://hub.docker.com/r/rafaelmariotti/oracle-ee-11g/</a></p>

<p>after set up the docker machine, etc, run the instance like this:
$docker run -d -p 1521:1521 -p 2484:2484 d03c4f0a4743</p>

<p>Then I ssh into the docker instance:
$docker exec -it xxxxxxxxxx /bin/bash</p>

<p>Modified the listener.ora file:</p>

<pre><code>LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
    )
    #(DESCRIPTION =
    #  (ADDRESS = (PROTOCOL = TCPS)(HOST = )(PORT = 2484))
    #)
)

ADR_BASE_LISTENER = /home/oracle/app/oracle
</code></pre>

<p>The line starts with # are lines that I added, but not commented out in the actual file.</p>

<p>Not if I connect to the instance, 
port 1521 returns correct, but port 2484 directly returns:
IO Error: Connection reset
  java.net.SocketException: Connection reset</p>

<p>But if I change the added line by replacing TCPS to TCP</p>

<p><code>(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 2484))</code></p>

<p>Then the error will be something like ORA-xxxxx</p>

<p>So it seems that the PROTOCOL = TCPS brings in the issue</p>

<p>Anybody can help?</p>

<p>Thanks!</p>