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

Problems creating user prior to entrypoint #20

Closed
psychemedia opened this issue Apr 17, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@psychemedia
Copy link

commented Apr 17, 2019

I'm trying to build a container based on this one that requires creating a user and copying some files into it's home directory.

The image builds fine, and when I run the container I can log in to it, but I am then just presented with a black screen, rather than the desktop. If

My setup pulls the ubuntu user setup as defined in the docker-entrypoint.sh file into a separate file (add-user.sh), copied and run from my Dockerfile. A modified docker-entrypoint.sh file, with the ubuntu user creation step commented out is also copied into the container. If I don't run my add-user.sh step, and just copy over the original (uncommented) docker-entrypoint.sh file, everything works fine.

It's like the user creation step has to run as part of the entrypoint?

@danielguerra69

This comment has been minimized.

Copy link
Owner

commented Apr 24, 2019

When an user is added in the Dockerfile it's hard coded in the image. When its done in the entrypoint the user is added when the system is running. Or just add a user when its running and then log in. docker-compose exec terminalserver adduser myuser

@psychemedia

This comment has been minimized.

Copy link
Author

commented Apr 24, 2019

A similar issue occurs when I run docker-compose exec terminalserver adduser myuser. If I try to log in with that new credential, I just see a black screen, not the desktop.

@danielguerra69

This comment has been minimized.

Copy link
Owner

commented May 3, 2019

You tell me you doing something based im my image. So what is your source ?

@psychemedia

This comment has been minimized.

Copy link
Author

commented May 3, 2019

IIRC, I simply commented out the user creation statements in the docker-entrypoint.sh and used them in the Dockerfile and rebuilt the container. Checking old screenshots, when I tried to run it and connect to it I either got a black screen or a sequence like this:

localhost_3390

then click the button and get:

localhost_3390A

@danielguerra69

This comment has been minimized.

Copy link
Owner

commented May 3, 2019

There is a reason why it is in the entrypoint !

@psychemedia

This comment has been minimized.

Copy link
Author

commented May 7, 2019

I thought as much, but I don't understand Linux and/or Docker enough to know why... I'm just trying to use it to get something done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.