title: Run docker process on foreground
body: <p>I have a container running ssh and a java program.
  <a href="https://i.stack.imgur.com/zem6n.png" rel="nofollow noreferrer">This is a screen shot of a terminal window showing it running.</a></p>
  <p>When I connect to the container via SSH my java program is running on background. I want to bring it to foreground.</p>
  <p>What I want to do is:
  When I connect via SSH I want to &quot;docker attach&quot; but from the inside the container using ssh.</p>