nestybox / nestybox/sysbox

Is that a right way that use docker entrypoint to excute .sh file and put process /sbin/init into the CMD ?

Open
#556 4 comments 0 reactions 0 assignees View on GitHub

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 :

image

image

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 :
image

I worry about the situation that systemd log information stuck , here is my question:

  1. Is there something wrong I don't know? if exist please tell me.
  2. Is a right way that use docker entrypoint to excute script and put process /sbin/init into the CMD ?

thanks,
Xiaotong.Zhao

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.