title: Accidentally expose port?
body: <p>I'm a beginner in both <code>docker</code> and <code>mysql</code>, and I use below command to run a <code>mysql</code> container</p>
  
  <pre><code>docker container run --publish 3306:3306 --name mysqlDB -d --env MYSQL_RANDOM_ROOT_PASSWORD=yes mysql
  </code></pre>
  
  <p>Now it run successfully and in order to grab the generated password, I run below command</p>
  
  <pre><code>docker container logs [containerID]
  </code></pre>
  
  <p>Within the logs I can find my <code>GENERATED ROOT PASSWORD</code>, but as I try to read the logs I noticed the below log</p>
  
  <blockquote>
    <p>[System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/run/mysqld/mysqlx.sock' bind-address: '::' port: 33060</p>
  </blockquote>
  
  <p>May I know what is this means? Is there by any chance I opened a port 33060? And how do I verify it?</p>