# voxl2 is not booting after using docker

Source: https://forum.modalai.com/topic/1667/voxl2-is-not-booting-after-using-docker
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-01-06 05:29:24 UTC by Anubhav
Replies: 2 · Views: 801

## Anubhav · 2023-01-06 05:29:24 UTC

Hello Dev Team, 

I have noticed that voxl2 is not booting after using docker, even after making sure while shutting down voxl2 to exit from a docker container. 
What might be the issue? And how can I avoid it in future? 

Thanks in advance!

## Reply by Anubhav · 2023-01-06 08:18:00 UTC

Below is the output showing that after configuring docker through command ```voxl-configure-docker-support``` and then stopping, disabling the docker-daemon. After this I was not able to boot the device, as you can see at last it's not showing any devices. 

```
voxl2:/$ voxl-configure-docker-support 
Starting Wizard
 
docker-ce is not currently installed.
Do you want to install docker-ce from the official docker repo?
This requires a working internet connection.
1) yes
2) no
#? 1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'docker-engine' is not installed, so not removed
Package 'docker' is not installed, so not removed
Package 'containerd' is not installed, so not removed
Package 'docker.io' is not installed, so not removed
Package 'runc' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
Get:1 file:/data/voxl-suite-offline-packages ./ InRelease
Ign:1 file:/data/voxl-suite-offline-packages ./ InRelease
Get:2 file:/data/voxl-suite-offline-packages ./ Release
Ign:2 file:/data/voxl-suite-offline-packages ./ Release
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:3 file:/data/voxl-suite-offline-packages ./ Packages [7215 B]
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Hit:5 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                                                                                       
Ign:7 http://voxl-packages.modalai.com qrb5165 InRelease                                                                                                                 
Get:8 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]                                                                                                
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [83.3 kB]                                                 
Hit:11 http://voxl-packages.modalai.com qrb5165 Release                                                   
Get:12 https://download.docker.com/linux/ubuntu bionic/stable arm64 Packages [30.0 kB]                                                                                                                            
Ign:13 http://voxl-packages.modalai.com qrb5165 Release.gpg                                                                                                                                                       
Get:14 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]                                                                                                                                   
Get:10 http://packages.ros.org/ros/ubuntu bionic InRelease [4680 B]                                                                                                                                               
Get:15 http://voxl-packages.modalai.com qrb5165/stable arm64 Packages [12.6 kB]                                                                                                                                   
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]                                                                                                                                     
Get:16 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main arm64 Packages [53.2 kB]                                                                                                                        
Get:17 http://packages.ros.org/ros/ubuntu bionic/main arm64 Packages [782 kB]                                                                                                                                     
Get:18 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main Translation-en [14.6 kB]                                                                                                                        
Get:19 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe arm64 Packages [17.8 kB]                                                                                                                    
Get:20 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe Translation-en [8668 B]                                                                                                                     
Get:21 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 Packages [1409 kB]                                                                                                                         
Get:22 http://ports.ubuntu.com/ubuntu-ports bionic-security/main Translation-en [433 kB]                                                                                                                          
Get:23 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted arm64 Packages [4816 B]                                                                                                                    
Get:24 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted Translation-en [142 kB]                                                                                                                    
Get:25 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 Packages [1119 kB]                                                                                                                     
Get:26 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe Translation-en [290 kB]                                                                                                                      
Get:27 http://ports.ubuntu.com/ubuntu-ports bionic-security/multiverse arm64 Packages [2668 B]                                                                                                                    
Get:28 http://ports.ubuntu.com/ubuntu-ports bionic-security/multiverse Translation-en [3908 B]                                                                                                                    
Get:29 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 Packages [1712 kB]                                                                                                                          
Get:30 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main Translation-en [523 kB]                                                                                                                           
Get:31 http://ports.ubuntu.com/ubuntu-ports bionic-updates/restricted arm64 Packages [5392 B]                                                                                                                     
Get:32 http://ports.ubuntu.com/ubuntu-ports bionic-updates/restricted Translation-en [150 kB]                                                                                                                     
Get:33 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages [1669 kB]                                                                                                                      
Get:34 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe Translation-en [404 kB]                                                                                                                       
Get:35 http://ports.ubuntu.com/ubuntu-ports bionic-updates/multiverse arm64 Packages [4944 B]                                                                                                                     
Get:36 http://ports.ubuntu.com/ubuntu-ports bionic-updates/multiverse Translation-en [6088 B]                                                                                                                     
Fetched 9128 kB in 28s (322 kB/s)                                                                                                                                                                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
147 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dbus dbus-user-session docker-ce-rootless-extras libdbus-1-3 pigz
Suggested packages:
  cgroupfs-mount | cgroup-lite
Recommended packages:
  slirp4netns
The following NEW packages will be installed:
  containerd.io dbus-user-session docker-ce docker-ce-cli docker-ce-rootless-extras pigz
The following packages will be upgraded:
  dbus libdbus-1-3
2 upgraded, 6 newly installed, 0 to remove and 145 not upgraded.
Need to get 77.7 MB/77.8 MB of archives.
After this operation, 320 MB of additional disk space will be used.
Get:1 https://download.docker.com/linux/ubuntu bionic/stable arm64 containerd.io arm64 1.6.14-1 [19.9 MB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 dbus arm64 1.12.2-1ubuntu1.4 [130 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libdbus-1-3 arm64 1.12.2-1ubuntu1.4 [152 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 dbus-user-session arm64 1.12.2-1ubuntu1.4 [9388 B]
Get:5 https://download.docker.com/linux/ubuntu bionic/stable arm64 docker-ce-cli arm64 5:20.10.22~3-0~ubuntu-bionic [37.2 MB]                                                                                     
Get:6 https://download.docker.com/linux/ubuntu bionic/stable arm64 docker-ce arm64 5:20.10.22~3-0~ubuntu-bionic [12.7 MB]                                                                                         
Get:7 https://download.docker.com/linux/ubuntu bionic/stable arm64 docker-ce-rootless-extras arm64 5:20.10.22~3-0~ubuntu-bionic [7572 kB]                                                                         
Fetched 77.7 MB in 1min 9s (1129 kB/s)                                                                                                                                                                            
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package pigz.
(Reading database ... 86735 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.4-1_arm64.deb ...
Unpacking pigz (2.4-1) ...
Preparing to unpack .../1-dbus_1.12.2-1ubuntu1.4_arm64.deb ...
Unpacking dbus (1.12.2-1ubuntu1.4) over (1.12.2-1ubuntu1.3) ...
Preparing to unpack .../2-libdbus-1-3_1.12.2-1ubuntu1.4_arm64.deb ...
Unpacking libdbus-1-3:arm64 (1.12.2-1ubuntu1.4) over (1.12.2-1ubuntu1.3) ...
Selecting previously unselected package containerd.io.
Preparing to unpack .../3-containerd.io_1.6.14-1_arm64.deb ...
Unpacking containerd.io (1.6.14-1) ...
Selecting previously unselected package dbus-user-session.
Preparing to unpack .../4-dbus-user-session_1.12.2-1ubuntu1.4_arm64.deb ...
Unpacking dbus-user-session (1.12.2-1ubuntu1.4) ...
Selecting previously unselected package docker-ce-cli.
Preparing to unpack .../5-docker-ce-cli_5%3a20.10.22~3-0~ubuntu-bionic_arm64.deb ...
Unpacking docker-ce-cli (5:20.10.22~3-0~ubuntu-bionic) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../6-docker-ce_5%3a20.10.22~3-0~ubuntu-bionic_arm64.deb ...
Unpacking docker-ce (5:20.10.22~3-0~ubuntu-bionic) ...
Selecting previously unselected package docker-ce-rootless-extras.
Preparing to unpack .../7-docker-ce-rootless-extras_5%3a20.10.22~3-0~ubuntu-bionic_arm64.deb ...
Unpacking docker-ce-rootless-extras (5:20.10.22~3-0~ubuntu-bionic) ...
Setting up containerd.io (1.6.14-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
Setting up docker-ce-cli (5:20.10.22~3-0~ubuntu-bionic) ...
Setting up pigz (2.4-1) ...
Setting up libdbus-1-3:arm64 (1.12.2-1ubuntu1.4) ...
Setting up docker-ce (5:20.10.22~3-0~ubuntu-bionic) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Setting up dbus (1.12.2-1ubuntu1.4) ...
A reboot is required to replace the running dbus-daemon.
Please reboot the system when convenient.
Setting up dbus-user-session (1.12.2-1ubuntu1.4) ...
Setting up docker-ce-rootless-extras (5:20.10.22~3-0~ubuntu-bionic) ...
Processing triggers for systemd (237-3ubuntu10.53) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
disabling original docker service
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable docker
Warning: Stopping docker.service, but it can still be activated by:
  docker.socket
disabling original docker service
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable docker
Warning: Stopping docker.service, but it can still be activated by:
  docker.socket
enabling modalai docker-daemon service
loading hello-world docker image
successfully loaded hello-world
hello-world docker image successfully loaded
 
Do you want to wipe the /etc/modalai/docker-autorun-script.sh file
back to factory default?
1) yes
2) no
#? 1
Copying default docker-autorun-script.sh to /etc/modalai/
 
Do you want to enable the modalai docker-daemon systemctl service?
This service is the same as the original docker systemctl service
but with customizations for VOXL. The original service will be
disabled and must remain disabled
1) yes
2) no
#? 1
disabling original docker service
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable docker
Warning: Stopping docker.service, but it can still be activated by:
  docker.socket
enabling modalai docker-daemon service
 
Do you want to enable the modalai docker-autorun systemctl service?
this will let you configure a docker image to load on boot using
the user-configurable /etc/modalai/docker-autorun.sh file
1) yes
2) no
#? 1
disabling original docker service
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable docker
Warning: Stopping docker.service, but it can still be activated by:
  docker.socket
enabling modalai docker-daemon service
detected hello-world docker image already loaded
enabling docker-autorun
Created symlink /etc/systemd/system/default.target.wants/docker-autorun.service → /etc/systemd/system/docker-autorun.service.

done configuring voxl-docker-support

voxl2:/$ voxl-inspect-services 
 Service Name         |  Enabled  |   Running   |  CPU Usage
---------------------------------------------------------------
 docker-autorun       |  Enabled  | Not Running |  
 docker-daemon        |  Enabled  |   Running   |     0.0
 modallink-relink     | Disabled  | Not Running |  
 voxl-camera-server   |  Enabled  | Not Running |  
 voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
 voxl-dfs-server      | Disabled  | Not Running |  
 voxl-imu-server      |  Enabled  |   Running   |     5.6
 voxl-mavlink-server  |  Enabled  |   Running   |     0.0
 voxl-modem           | Disabled  | Not Running |  
 voxl-portal          |  Enabled  |   Running   |     0.0
 voxl-px4-imu-server  | Disabled  | Not Running |  
 voxl-px4             |  Enabled  | Not Running |  
 voxl-qvio-server     |  Enabled  |   Running   |     0.0
 voxl-softap          | Disabled  | Not Running |  
 voxl-static-ip       | Disabled  | Not Running |  
 voxl-streamer        | Disabled  | Not Running |  
 voxl-tag-detector    | Disabled  | Not Running |  
 voxl-tflite-server   | Disabled  | Not Running |  
 voxl-time-sync       | Disabled  | Not Running |  
 voxl-vision-px4      |  Enabled  |   Running   |     0.0
 voxl-wait-for-fs     |  Enabled  |  Completed  |  
voxl2:/$ systemctl stop docker-daemon
voxl2:/$ voxl-inspect-services 
 Service Name         |  Enabled  |   Running   |  CPU Usage
---------------------------------------------------------------
 docker-autorun       |  Enabled  | Not Running |  
 docker-daemon        |  Enabled  | Not Running |  
 modallink-relink     | Disabled  | Not Running |  
 voxl-camera-server   |  Enabled  | Not Running |  
 voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
 voxl-dfs-server      | Disabled  | Not Running |  
 voxl-imu-server      |  Enabled  |   Running   |     5.3
 voxl-mavlink-server  |  Enabled  |   Running   |     0.0
 voxl-modem           | Disabled  | Not Running |  
 voxl-portal          |  Enabled  |   Running   |     0.0
 voxl-px4-imu-server  | Disabled  | Not Running |  
 voxl-px4             |  Enabled  | Not Running |  
 voxl-qvio-server     |  Enabled  |   Running   |     0.0
 voxl-softap          | Disabled  | Not Running |  
 voxl-static-ip       | Disabled  | Not Running |  
 voxl-streamer        | Disabled  | Not Running |  
 voxl-tag-detector    | Disabled  | Not Running |  
 voxl-tflite-server   | Disabled  | Not Running |  
 voxl-time-sync       | Disabled  | Not Running |  
 voxl-vision-px4      |  Enabled  |   Running   |     0.0
 voxl-wait-for-fs     |  Enabled  |  Completed  |  
voxl2:/$ systemctl disable docker-daemon
Removed /etc/systemd/system/multi-user.target.wants/docker-daemon.service.

voxl2:/$ exit 
exit

# anubhav @ anubhav-GF63-Thin-9SC in ~/voxl2/voxl2_platform_1.3.1-0.8 [12:05:16] 
$ adb shell           
error: no devices/emulators found

# anubhav @ anubhav-GF63-Thin-9SC in ~/voxl2/voxl2_platform_1.3.1-0.8 [13:30:05] C:1
$ adb shell
error: no devices/emulators found

# anubhav @ anubhav-GF63-Thin-9SC in ~/voxl2/voxl2_platform_1.3.1-0.8 [13:30:07] C:1
$ adb shell
error: no devices/emulators found

# anubhav @ anubhav-GF63-Thin-9SC in ~/voxl2/voxl2_platform_1.3.1-0.8 [13:30:08] C:1
$ adb shell
error: no devices/emulators found

# anubhav @ anubhav-GF63-Thin-9SC in ~/voxl2/voxl2_platform_1.3.1-0.8 [13:30:09] C:1
$ adb devices 
List of devices attached

# anubhav @ anubhav-GF63-Thin-9SC in ~/voxl2/voxl2_platform_1.3.1-0.8 [13:30:16] 
$ adb wait-for-device 
^C

```

## Reply by modaltb (ModalAI staff) · 2023-01-06 21:44:02 UTC

Hi @Anubhav ,

Docker should natively work on VOXL2... so the `voxl-configure-docker-support` shouldn't be used at all on VOXL2....

Should be able to use this directly: https://docs.docker.com/engine/install/ubuntu/

If VOXL2 isn't booting... you can reflash with the platform release, and please just don't run `voxl-configure-docker-support` (and we need to fix this script to not run on VOXL2.....)

To reflash:
https://docs.modalai.com/platform-releases/#install
