title: docker stack ignoring unsupported options
body: <p>I am running docker Server Version: 18.06.0-ce on centos 7.5.</p>
  
  <p>I have a docker-compose file running db2 server with the following sample definition:</p>
  
  <p>The docker-compose file has the following options:</p>
  
  <pre><code>version: "3.7"
  services:
      db2exp:
          image: db2
          ports:
              - "50000:50000"
          networks:
              - lmnet
          ipc: host
          cap_add:
              - IPC_LOCK
              - IPC_OWNER
          environment:
              - DB2INSTANCE=db2inst1
              - DB2PASSWD=db2inst1
              - LICENSE=accept
          volumes:
              - db2data:/home
  </code></pre>
  
  <p>When using docker-compose up, I do not have problems with starting the db2 service. However when I try to use docker stack, I get the following message:</p>
  
  <pre><code>docker stack deploy test --compose-file docker-compose.yml
  Ignoring unsupported options: cap_add, ipc
  </code></pre>
  
  <p>This renders db2start to return SQL1042C  An unexpected system error occurred.</p>
  
  <p>It would be ideal if what runs in compose runs in stack.  What, if any, can be done so that the db2 container can be used in a docker stack environment and not just docker-compose? </p>
  
  <p>If it matters, I have docker-compose version 1.23.0-rc1, build 320e4819.</p>
  
  <p>Thanks in advance.</p>