title: MSSQL at Docker exits instantly
body: <p>I'm trying to setup MSSQL at Docker at Windows 10, but for some reason it started shutting down my container</p>
  
  <p>I've been using it like that for months, but now I have no idea what's happening</p>
  
  <pre><code>    C:\Users\user\
      λ docker ps -a
      CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
  
      C:\Users\user\
      λ docker login
      Authenticating with existing credentials...
      Login Succeeded
  
      C:\Users\user\
      λ docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=&lt;YourStrong!Passw0rd&gt;123' -p 1433:1433 --name sql -d mcr.microsoft.com/mssql/server:2017-latest
      337e5efb35f0bf4b465181a0f8be4851b12f353a3a8710ddf817d2f501e5fea
  
      C:\Users\user\
      λ docker ps -a
      CONTAINER ID        IMAGE                                        COMMAND                  CREATED             STATUS              PORTS                    NAMES
      347q5effb3cf0        mcr.microsoft.com/mssql/server:2017-latest   "/opt/mssql/bin/sqls…"   3 seconds ago       Up 2 seconds        0.0.0.0:1433-&gt;1433/tcp   sql
  
      C:\Users\user\
      λ docker ps -a
      CONTAINER ID        IMAGE                                        COMMAND                  CREATED             STATUS                     PORTS               NAMES
      347q5effb3cf0        mcr.microsoft.com/mssql/server:2017-latest   "/opt/mssql/bin/sqls…"   6 seconds ago       Exited (1) 2 seconds ago                       sql
  
      C:\Users\user\
      λ docker start sql
      sql
  
      C:\Users\user\
      λ docker ps -a
      CONTAINER ID        IMAGE                                        COMMAND                  CREATED             STATUS              PORTS                    NAMES
      347q5effb3cf0        mcr.microsoft.com/mssql/server:2017-latest   "/opt/mssql/bin/sqls…"   14 seconds ago      Up 2 seconds        0.0.0.0:1433-&gt;1433/tcp   sql
  
      C:\Users\user\
      λ docker ps -a
      CONTAINER ID        IMAGE                                        COMMAND                  CREATED             STATUS                    PORTS               NAMES
      347q5effb3cf0        mcr.microsoft.com/mssql/server:2017-latest   "/opt/mssql/bin/sqls…"   16 seconds ago      Exited (1) 1 second ago                       sql
  </code></pre>
  
  <blockquote>
    <p>docker logs sql</p>
  </blockquote>
  
  <p>shows</p>
  
  <blockquote>
    <p>The SQL Server End-User License Agreement (EULA) must be accepted before SQL
    Server can start. The license terms for this product can be downloaded from
    <a href="http://go.microsoft.com/fwlink/?LinkId=746388" rel="noreferrer">http://go.microsoft.com/fwlink/?LinkId=746388</a>.</p>
    
    <p>You can accept the EULA by specifying the --accept-eula command line option,
    setting the ACCEPT_EULA environment variable, or using the mssql-conf tool.
    The SQL Server End-User License Agreement (EULA) must be accepted before SQL
    Server can start. The license terms for this product can be downloaded from
    <a href="http://go.microsoft.com/fwlink/?LinkId=746388" rel="noreferrer">http://go.microsoft.com/fwlink/?LinkId=746388</a>.</p>
    
    <p>You can accept the EULA by specifying the --accept-eula command line option,
    setting the ACCEPT_EULA environment variable, or using the mssql-conf tool.</p>
  </blockquote>
  
  <p>Anybody has an idea what may be wrong?</p>