buildroot системой на busybox , прикрутил при сборке docker-engine c dockerd. После загрузки системы в процессе проверки работы докера получил ошибку что не иницилазирован dockerd сервис (служба). T.к. systemd в системе нет, как можно/следует запустить dockerd из busybox или из busybox это очень сложно сделать?
[root@ok3568:/]# docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@ok3568:/]# dockerd
INFO[0000] libcontainerd: new containerd process, pid: 854
WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096
ERRO[0001] Failed to built-in GetDriver graph zfs /var/lib/docker
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] Your kernel does not support cgroup memory limit
WARN[0001] Unable to find cpu cgroup in mounts
WARN[0001] Unable to find blkio cgroup in mounts
WARN[0001] Unable to find cpuset cgroup in mounts
WARN[0001] mountpoint for pids not found
Error starting daemon: Devices cgroup isn't mounted
[root@ok3568:/]# which cgroup
[root@ok3568:/]# groups
root
[root@ok3568:/]# uname -r
4.19.206
[root@ok3568:/]# start-stop-daemon -S -x dockerd
INFO[0000] libcontainerd: new containerd process, pid: 922
WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096
ERRO[0001] Failed to built-in GetDriver graph zfs /var/lib/docker
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] Your kernel does not support cgroup memory limit
WARN[0001] Unable to find cpu cgroup in mounts
WARN[0001] Unable to find blkio cgroup in mounts
WARN[0001] Unable to find cpuset cgroup in mounts
WARN[0001] mountpoint for pids not found
Error starting daemon: Devices cgroup isn't mounted
Похоже, что ядро было собрано без поддержки cgroup, видимо, надо вручную включать в настройках ядра.
Спасибо, буду копать в эту сторону. А на сколько сложно заменить init с busybox на systemd?
О! ok3568 намекает...
busybox это набор традиционных утилит, он немного ортогонален systemd и, возможно, может использоваться вместе. Но для запуска докера это не должно быть принципиально
Обсуждают сегодня