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

docker compose file issue #13

Open
tomikkk opened this issue Nov 15, 2023 · 2 comments
Open

docker compose file issue #13

tomikkk opened this issue Nov 15, 2023 · 2 comments

Comments

@tomikkk
Copy link

tomikkk commented Nov 15, 2023

I'm starting the container with a docker-compose.yml file, where I defined the user and password

    environment:
      - OMSA_USER="docker-user"
      - OMSA_PASS="xxxx"

but it keeps on restarting with this in the logs:

dell-omsa  | Creating user "docker-user"...
dell-omsa  | adduser: invalid user name '"docker-user"': use --badname to ignore
dell-omsa  | Setting login password for "docker-user"...
dell-omsa  | chpasswd: line 1: user '"docker-user"' does not exist
dell-omsa  | chpasswd: error detected, changes ignored
dell-omsa  | Allowing "docker-user" access to openmanage...
dell-omsa  | Clearing old tmp files...
dell-omsa  | Starting init...
dell-omsa exited with code 0

any idea what I'm doing wrong?

@ShaneMcC
Copy link
Owner

Hi,

You need to wrap the whole thing in quotes if you're quoting it:

    environment:
      - "OMSA_USER=docker-user"
      - "OMSA_PASS=xxxx"

Otherwise it's being interpreted as literally "docker-user" - quotes and all.

@tomikkk
Copy link
Author

tomikkk commented Nov 16, 2023

That fixed it thank you.

I'm using it with Nagios and check_openmanage, so the only missing thing inside the container was the perl module Sys::Hostname which I installed with cpanm

I have a strange console issue, however, that after a reboot, on console 0, I get a standard system login prompt, followed directly by a login prompt from the docker container. I've never seen that before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants