Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when try to start image #688

Open
daventt opened this issue Oct 28, 2024 · 7 comments
Open

Error when try to start image #688

daventt opened this issue Oct 28, 2024 · 7 comments

Comments

@daventt
Copy link

daventt commented Oct 28, 2024

What are you trying to do?

When try to start image with docker compose, i receive following error:

With image eclipse-temurin:21.0.5_11-jdk-alpine:
/__cacert_entrypoint.sh: exec: line 114: illegal option --

With image eclipse-temurin:21.0.4_7-jdk-alpine:
/__cacert_entrypoint.sh: exec: line 104: illegal option --

Docker version 26.1.3, build b72abbb

Docker Compose version v2.29.7

@sxa
Copy link
Member

sxa commented Oct 28, 2024

Potentially related to #642 which is being called out in the release notes as resolving an issue relating to __cacert_entrypoint.sh although since you're using the 21.0.5+11 image I would expect it to have been resolved.

FYI @gdams as the owner of 642

@gdams gdams transferred this issue from adoptium/temurin-build Oct 28, 2024
@gdams
Copy link
Member

gdams commented Oct 28, 2024

Potentially related to #642 which is being called out in the release notes as resolving an issue relating to __cacert_entrypoint.sh although since you're using the 21.0.5+11 image I would expect it to have been resolved.

Unlikely as it's also broken in eclipse-temurin:21.0.4_7-jdk-alpine

@daventt can you give me a simple docker-compose file that I can use to recreate your issue?

I've been testing with this and it's running just fine:

services:
  test-app:
    image: eclipse-temurin:21.0.5_11-jdk-alpine
    command: ["java", "-version"]
docker compose up

@gdams
Copy link
Member

gdams commented Oct 28, 2024

For what it's worth the line that is throwing your error is:

This line is somewhat out of our control. We'd need to see what command you're passing to docker-compose to understand why this would fail

@daventt
Copy link
Author

daventt commented Oct 29, 2024

Hello,
I don't use any commands in my configuration. The same yml file configuration works on windows but doesn't work on rhel 8.9

Whit image 21.0.4_7-jdk i've the following error:

/__cacert_entrypoint.sh: line 114: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]
exit code 2

File yml:

services:
backendv3:
container_name: test
build:
context: ./test-v1
dockerfile: ./java.Dockerfile
ports:
- $SERVER_HOST_PORT:8080
environment:
- ecc..
volumes:
- $LOG_FOLDER:/logs
- $STORAGE_FOLDER:/storage

@gdams
Copy link
Member

gdams commented Oct 29, 2024

@daventt I'll need to see the contents of your ./java.Dockerfile. Are you able to provide me with a minimal version?

@daventt
Copy link
Author

daventt commented Oct 29, 2024

Unfortunately it contains critical data, I'll try deleting line by line and see what happens. I'll update you in 2 days

@gdams
Copy link
Member

gdams commented Oct 29, 2024

Unfortunately it contains critical data, I'll try deleting line by line and see what happens. I'll update you in 2 days

one pointer I could give you is it could be that you're trying to run bash in some way? We don't install bash by default in our base images. You could try apk add bash and see if that fixes your problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

3 participants