title: How to use docker for sqs locally
body: <p>I am using AWS SQS in my project. I want to use this for local setup. For SQS purpose I have added <a href="https://github.com/vsouza/docker-SQS-local" rel="noreferrer">dokcer_local</a> on my project.</p>
  
  <p>I have updated docker file with by adding this as suggested in the link.</p>
  
  <pre><code>FROM java:8
  
  ADD https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.13.8.jar /
  COPY custom.conf /
  ENTRYPOINT ["/usr/bin/java", "-Dconfig.file=custom.conf", "-jar", "/elasticmq-server-0.13.8.jar"]
  
  EXPOSE 9324
  
  CMD ["-help"]
  </code></pre>
  
  <p>When I execute command <code>docker ps</code> I get this on my screen</p>
  
  <pre><code>CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                     NAMES
  48e934fc6c43        mysql:5.7.16        "docker-entrypoint.s…"   24 minutes ago      Up 24 minutes       0.0.0.0:10612-&gt;3306/tcp   xyz_mysql_1
  0af050bd3332        vsouza/sqs-local    "/usr/bin/java -Dcon…"   2 hours ago         Up 2 hours          0.0.0.0:9324-&gt;9324/tcp    wizardly_yalow
  </code></pre>
  
  <p>I have added entry for sqs in my <strong>docker-compose.yml</strong> file too as:</p>
  
  <pre><code>sqs:
      image: s12v/elasticmq
      ports:
      - "9324:9324".
  </code></pre>
  
  <p>Now I am unable to understand how to use the sqs on my console.
  after going in the shell of sqs using this command <code>sudo docker exec -it 0af050bd3332 sh</code>. When I try to list queue it is printing <code>sh: 2: list-queues: not found</code> error.</p>
  
  <p>I have tried lots of things but nothing seems to work.</p>