UNCLASSIFIED - NO CUI

Skip to content

Default user does not have permissions to /app/application.yml

Summary

When starting up the container as default user it errors out because the default user in the image does not have permission to /app/application.yml. It runs perfectly if I run the container as root (probably not the correct solution)

Steps to reproduce

Launch the exiting container with a docker compose like the following

  akhq:
    image: registry1.dso.mil/ironbank/opensource/tchiotludo/akhq:0.24.0
    ports:
      - 8080:8080
    depends_on:
      - kafka
    environment:
      AKHQ_CONFIGURATION: |
        akhq:
          connections:
            docker-kafka-server:
              properties:
                bootstrap.servers: "kafka:9092"

What is the current bug behavior?

I get the following error:

[krotte@ws-1dst8b3 icr-root]$ docker compose up akhq
[+] Running 3/3
 ✔ Container iif-zookeeper-1  Running                                                                                                                                                                                                                                0.0s 
 ✔ Container iif-kafka-1      Running                                                                                                                                                                                                                                0.0s 
 ✔ Container iif-akhq-1       Recreated                                                                                                                                                                                                                              0.2s 
Attaching to iif-akhq-1
iif-akhq-1  | /usr/local/bin/docker-entrypoint.sh: line 6: /app/application.yml: Permission denied
iif-akhq-1 exited with code 1

What is the expected correct behavior?

I would expect the container to start up like normal

Relevant logs and/or screenshots

See information in the current behavior section

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Tasks

  • Bug has been identified and corrected within the container

Please read the Iron Bank Documentation for more info

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information