github.com/apptainer/singularity@v3.1.1+incompatible/examples/self/README.md (about) 1 # Bootstrap Self 2 3 A self bootstrap means packaging the current operating system that you live on into an image. Since we assume the root, you don't need to define a `From`. It looks like this: 4 5 6 ## Options 7 ``` 8 Bootstrap: self 9 ``` 10 11 If you really wanted to specify some root, you could do this: 12 13 ``` 14 Bootstrap: self 15 From: / 16 ``` 17 18 And we highly recommend that you exclude paths that you don't want added to the tar. For example, Docker stores a lot of data in `/var`, so I chose to exclude that, along with some of the applications in `/opt`: 19 20 ``` 21 Bootstrap: self 22 Exclude: /var/lib/docker /home/vanessa /opt/* 23 ``` 24 25 ## Build Example 26 so we could do the following with the specification build file in this folder: 27 28 ``` 29 singularity create --size 8000 container.img 30 sudo singularity bootstrap container.img Singularity 31 ``` 32 33