title: Kafka connect in docker
body: <p>I am trying to set up a Dockerized environment running kafka-connect and having a standalone connector (s3-sink).</p>
  
  <p>I am using docker-compose and Kafka, zookeeper and my producer all works beautifully, but the docker image for kafka connect shuts down immediately after booting. I used examples from the documentation, but none uses a ENTRYPOINT or CMD.</p>
  
  <p>Further more, when I prevent it to shutdown and try to launch my connector with <code>./bin/connect-standalone</code> it fails with the following error <code>org.apache.kafka.connect.errors.ConnectException: Failed to find any class that implements Connector and which name matches io.confluent.connect.s3.S3SinkConnector</code></p>
  
  <p>My Docker compose is literraly two lines, the first one should be doing what my first problem is, the second is installing what the second issue claims is missing...</p>
  
  <p>Surely I am missing something here in how this is supposed to be working, any idea ?</p>
  
  <p>I prevented the image to shutdown, and it still does not expose anything on port 8083 with kafka-connect REST interface </p>
  
  <pre><code>FROM confluentinc/cp-kafka-connect-base:5.3.0
  RUN confluent-hub install --no-prompt confluentinc/kafka-connect-s3:5.3.0
  COPY . .
  #CMD["connect-standalone", "connect-standalone.properties", "s3-sink.properties"]
  </code></pre>
  
  <p>I expect the Docker image to not shutdown and expose port 8083</p>
  
  <p><strong>Answer</strong> : the rest API is started when a connector is launched. If the connector fails, the api is shut down so will the container.</p>