Skip to content

Is the container booted when we run the container? #2558

Answered by dtrudg
Heng-Zhou asked this question in Q&A
Discussion options

You must be logged in to vote

There is generally no concept of 'booting' a Singularity container. A container shares the kernel of the host system, so there is no low level boot up of drivers etc.

A container does not usually have an init system (generally systemd), nor does it run the various services an OS will when booted on a physical or virtual machine.

When you run commands in %post, the only environment is whatever has been setup by earlier commands, or the base image in your From: line.

When you shell into a container, only the shell process is started inside the container. Generally nothing else is 'booted'.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dtrudg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants