@@ -28,28 +28,32 @@ The Linux host on which Sysbox runs must meet the following requirements:
28
28
For example:
29
29
30
30
``` console
31
- $ sha256sum sysbox_0.1.3 -0.ubuntu-disco_amd64 .deb
32
- 774aa1442c9142a1e6c6db49f896439b989de3668926bccd91aa0a679fa3df87 sysbox_0.1.3 -0.ubuntu-disco_amd64 .deb
31
+ $ sha256sum sysbox_0.2.0 -0.ubuntu-focal_amd64 .deb
32
+ 1e171a58f21ad8bd427af3186f5f331a466350f02ce6a66c7e8b723c2764e33c sysbox_0.2.0 -0.ubuntu-focal_amd64 .deb
33
33
```
34
34
35
- 3 ) Stop all running Docker containers.
35
+ 3 ) In scenarios where kernel carries ` shiftfs ` module, there is no need to stop
36
+ and eliminate existing containers prior to Sysbox installation. Sysbox's installer
37
+ will seamlessly complete the installation process without service disruption.
36
38
37
- 4 ) Install the Sysbox package and follow the installer instructions:
39
+ On the other hand, if ` shiftfs ` module is missing, Sysbox installer may require
40
+ a Docker Service restart. In this scenario (see [ userns-remap] ( #docker-userns-remap ) mode), if Docker is not already operating in
41
+ ` userns-remap ` mode, we encourage users to stop and remove existing containers
42
+ before launching the Sysbox installer:
38
43
39
- ``` console
40
- $ sudo dpkg -i sysbox_0.1.3-0.ubuntu-disco_amd64.deb
44
+ ```
45
+ $ docker stop $(docker ps -a -q) && docker container prune -f
41
46
```
42
47
43
- In case you hit an error with missing dependencies, fix this with:
48
+ If an error is returned, it simply indicates that no existing containers were
49
+ found.
50
+
51
+ 4 ) Install the Sysbox package and follow the installer instructions:
44
52
45
53
``` console
46
- $ sudo apt-get update
47
- $ sudo apt-get install -f -y
54
+ $ sudo apt-get install ./sysbox_0.2.0-0.ubuntu-focal_amd64.deb -y
48
55
```
49
56
50
- This will install the missing dependencies and automatically re-launch
51
- the Sysbox installation process.
52
-
53
57
5 ) Verify that Sysbox's Systemd units have been properly installed, and
54
58
associated daemons are properly running:
55
59
@@ -114,7 +118,7 @@ The installer uses the following logic:
114
118
115
119
If Docker needs to be placed in userns-remap, the Sysbox installer will check if
116
120
Docker is already in this mode (by looking for ` userns-remap ` in
117
- ` /etc/docker/daemon.json ` ). If so, no further action is required.
121
+ ` /etc/docker/daemon.json ` and ` userns ` entry in ` docker info ` output ). If so, no further action is required.
118
122
119
123
Otherwise, the Sysbox installer will add the following ` userns-remap ` entry to the
120
124
` /etc/docker/daemon.json ` file:
@@ -152,17 +156,11 @@ keep in mind:
152
156
Prior to uninstalling Sysbox, make sure all system containers are removed.
153
157
There is a simple shell script to do this [ here] ( ../../scr/rm_all_syscont ) .
154
158
155
- 1 ) Uninstall Sysbox binaries:
156
-
157
- ``` console
158
- $ sudo dpkg --remove sysbox
159
- ```
160
-
161
- Alternatively, remove the above items plus all the associated
162
- configuration and Systemd files (recommended):
159
+ 1 ) Uninstall Sysbox binaries plus all the associated configuration and Systemd
160
+ files:
163
161
164
162
``` console
165
- $ sudo dpkg -- purge sysbox
163
+ $ sudo apt-get purge sysbox -y
166
164
```
167
165
168
166
2 ) Remove the ` sysbox ` user from the system:
0 commit comments