Docker Community Forums

Share and learn in the Docker community.

How to run systemd-nspawn inside the docker container?

I am getting this issue inside the docker conatiner(the base image taken over here is that of the clearlinux)

ERROR: Command failed:

/usr/bin/systemd-nspawn -q -M 1adee622c3b145d094c1c5d958f742ca -D /var/lib/mock/clear-thrift/root -a --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf “\033]0;\007” --setenv=PS1= \s-\v$ --setenv=LANG=en_US.UTF-8 /usr/sbin/useradd -m -u 0 -g 302 -d /builddir mockbuild