title: How can I redirect std error to std out in GitLab runner
body: <p>I'm working on <code>GitLab CI/CD</code> and I'm aware of how to redirect std error to std out in normal cases. It is to use <code>2&gt;&amp;1</code> or <code>&gt;/dev/null 2&gt;&amp;1</code>.</p>
  
  <p>Sometimes, I need some commands that throw errors but the errors are not critical. For an example, When I deploy my docker app, I want to stop my old container if it exists and ignore the error which will occur if the container doesn't exist.
  In such case, I want to just ignore the std error and keep processes to deploy.
  When I use <code>AWS CodeDeploy</code>, error redirecting by <code>2&gt;&amp;1</code> did work but in <code>GitLab CI/CD</code>, it doesn't work.</p>
  
  <p>The following images are the errors which cancle CI/CD processes.
  Without the command stopping containers which doesn't exist, there is no error and deployment does work.</p>
  
  <h2>Question.</h2>
  
  <p>How can I redirect std error to std out or ignore the errors and keep deployment in <code>GitLab CI/CD</code>?</p>
  
  <p><a href="https://i.stack.imgur.com/f8AuP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f8AuP.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/TEKD3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TEKD3.png" alt="enter image description here"></a></p>