title: Invalid publish opts format when running sidecar
body: <p>I want to run docker container with sidecar by <a href="https://joostvdg.github.io/swe/distributed/" rel="nofollow noreferrer">this tutorial</a>.</p>
  <p>For example, i have java spring boot application. Then i made such Dockerfile:</p>
  <pre><code># Dockerfile for GitLab CI/CD
  
  FROM maven:3.5.2-jdk-8-alpine AS MAVEN_BUILD
  ARG SPRING_ACTIVE_PROFILE
  MAINTAINER SlandShow
  COPY pom.xml /build/
  COPY src /build/src/
  WORKDIR /build/
  RUN mvn clean install -Dspring.profiles.active=$SPRING_ACTIVE_PROFILE &amp;&amp; mvn package -B -e -Dspring.profiles.active=$SPRING_ACTIVE_PROFILE
  FROM openjdk:8-alpine
  WORKDIR /app
  COPY --from=MAVEN_BUILD /build/target/task-0.0.1-SNAPSHOT.jar /app/task-0.0.1-SNAPSHOT.jar
  ENTRYPOINT [&quot;java&quot;, &quot;-jar&quot;, &quot;task-0.0.1-SNAPSHOT.jar&quot;]
  
  </code></pre>
  <p>After that i build docker image and run it:</p>
  <pre><code>$ docker build .
  
  $ docker container run -p 8010:8010 &lt;imageId&gt;
  </code></pre>
  <p>Docker-CLI returns hash for started contaner. For example- <code>cc82fa748a62de634893f5594a334ada2854f0be0dff8149efb28ae67c98191c</code>.</p>
  <p>Then i'am trying to start sidecar:</p>
  <pre><code>docker run -pid=container:cc82fa748a62de634893f5594a334ada2854f0be0dff8149efb28ae67c98191c -p 8080:8080 brendanburns/topz:db0fa58 /server --addr=0.0.0.0:8080
  </code></pre>
  <p>And get:</p>
  <pre><code>docker: invalid publish opts format (should be name=value but got '8080:8080').
  </code></pre>
  <p>What's wrong with it?</p>