title: Connection refused error to docker container from browser
body: <p>I have a server.js file in javascript</p>
  <p>it works OK</p>
  <p>when I can create a image but I cannot connect to it from my web browser
  (Cannot connect error)</p>
  <p>Dockerfile</p>
  <pre><code>FROM node:16
  WORKDIR /G/Docker/docker_node_1
  # Copy to docker container
  COPY package*.json ./
  RUN npm install
  # For production
  #RUN npm ci --only=production
  COPY . .
  EXPOSE 8090
  CMD [&quot;node&quot;, &quot;server.js&quot;]
  </code></pre>
  <p>server.js file</p>
  <pre><code>FROM node:16
  WORKDIR /G/Docker/docker_node_1
  # Copy to docker container
  COPY package*.json ./
  RUN npm install
  # For production
  #RUN npm ci --only=production
  COPY . .
  EXPOSE 8090
  CMD [&quot;node&quot;, &quot;server.js&quot;]
  </code></pre>