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

Create an entrypoint and command in Dockerfile #9

Open
duartej opened this issue Jul 14, 2021 · 0 comments
Open

Create an entrypoint and command in Dockerfile #9

duartej opened this issue Jul 14, 2021 · 0 comments

Comments

@duartej
Copy link
Owner

duartej commented Jul 14, 2021

Some issue when init service requiring a terminal, as there were no command nor entry point in the Dockerfile (see #1 ). This is solve so far adding a entrypoint in the service you want to use:

entrypoint: "/bin/bash -i"`

Probably no need of this if include as last line of the Dockrefile:

USER root
ENTRYPOINT ["/sbin/my_init","--quiet","--","/sbin/setuser","eudaquser","/bin/bash","-l","-c"]
CMD ["/bin/bash","-i"]

(not sure about the root, probably yes...)

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

1 participant