Is that a right way that use docker entrypoint to excute .sh file and put process /sbin/init into the CMD ?
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.9k
- Forks
- 230
- Avg merge
- 7h 48m
- Merged PRs (30d)
- 3
Description
Hi, it's me again, I have a question about process /sbin/init in docker,
here is my dockerfile :
Dockfile
and my script.sh file:
script.sh
and my docker-compose.yml:
docker-compose.yml
base on these file I build a image and named "base", and excecute cmd docker-compose up and the log information like this :


you see the output log information stuck the message "Finished Update UTMP about System Runlevel Changes.", whereas I can still use ssh to visit the container , and so far everything is fine inside the container :

I worry about the situation that systemd log information stuck , here is my question:
- Is there something wrong I don't know? if exist please tell me.
- Is a right way that use docker entrypoint to excute script and put process /sbin/init into the CMD ?
thanks,
Xiaotong.Zhao
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked Dockerfile, script.sh, and docker-compose.yaml, then reproduce the docker-compose up output around “Finished Update UTMP about System Runlevel Changes.” Compare the entrypoint and CMD behavior with the container’s SSH access and /sbin/init process. Done means determining whether the stalled log indicates a problem or expected behavior and documenting the cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, shell
- Domain
- devops, infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100