In a terminal from this directory:
docker build -t debian-sbuild .This will create an image named debian-sbuild.
To start the container interactively with the necessary privileges:
docker run --cap-add=SYS_ADMIN --security-opt seccomp=unconfined --rm -it debian-sbuildExample:
dget https://.../foo.dsc
sbuild --chroot-mode=autopkgtest \
--autopkgtest-virt-server=autopkgtest-virt-null \
--extra-repository='deb http://deb.debian.org/debian experimental main' \
--build-dep-resolver=aspcud --aspcud-criteria '-count(down),-count(changed,APT-Release:=/experimental/),-removed,-changed,-new' \
--add-depends 'liboctomap-dev (> 1.10)' -d unstable fcl_0.7.0-3.dsc \
--append-to-version=.1 -m sbuild
# --extra-package ..โโ