Question

error when trying to create docker container from streamsets docker-compose

  • 27 May 2022
  • 3 replies
  • 42 views

when we run the command "docker-compose up" it shows the error below:

 

# docker-compose up
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Creating sdc_2 ... done
Attaching to sdc_2
sdc_2  | /docker-entrypoint.sh: line 22: /opt/streamsets-datacollector-3.22.3/bin/streamsets: No such file or directory
 

contents of docker-compose.yml file

version: '3'
services:
  sdc:
    image: streamsets/datacollector:3.22.3
    container_name: sdc_2
    hostname: sdc002
    restart: unless-stopped
    network_mode: bridge
    ports:
      - 18630:18630/tcp
    volumes:
       - ./sdc-data:/data
    environment:
       SDC_CONF_HTTP_AUTHENTICATION: 'form'

 

what could be causing this problem?

 

the docker-entrypoint.sh file that is inside the sdc 3.22.3 image may be having a problem?

 

when we create the sdc docker container manually with "docker run...", as below, the container works 100%:

 

docker run -d -p 18630:18630 \
-h sdc002 \
--name sdc_2 \
-e SDC_CONF_http_authentication=form \
streamsets_tzdata2022a:3.22.3


3 replies

Userlevel 3
Badge

No clue. Any particular reason to be using Docker Compose if you're just starting one image? If the docker run command works, maybe just turn that into a Bash script and be done with it?

hi @dima 

 

it would be more for automation in a possible change in the container, with docker compose it helps a lot.

 

there is currently a simple script that is being used even with docker run...

Userlevel 3
Badge

Gotcha. Please let us know if you sort out what's wrong. 

Reply