Man page - deb2docker(1)
Packages contas this manual
- diff2patches(1)
- debuild(1)
- deb2apptainer(1)
- mk-origtargz(1)
- chdist(1)
- dd-list(1)
- dscextract(1)
- mass-bug(1)
- deb2docker(1)
- debftbfs(1)
- getbuildlog(1)
- mergechanges(1)
- annotate-output(1)
- debbisect(1)
- debrepro(1)
- dpkg-depcheck(1)
- bts(1)
- reproducible-check(1)
- git-deborig(1)
- deb-why-removed(1)
- transition-check(1)
- mk-build-deps(1)
- what-patch(1)
- dep-14-convert-git-branch-names(1)
- debsign(1)
- cowpoke(1)
- debdiff-apply(1)
- archpath(1)
- devscripts.conf(5)
- namecheck(1)
- nmudiff(1)
- who-uploads(1)
- uscan(1)
- dcmd(1)
- suspicious-source(1)
- wnpp-check(1)
- grep-excuses(1)
- debrelease(1)
- deb-reversion(1)
- deb2singularity(1)
- rmadison(1)
- debi(1)
- add-patch(1)
- sadt(1)
- dpkg-genbuilddeps(1)
- checkbashisms(1)
- wrap-and-sort(1)
- dscverify(1)
- debcheckout(1)
- debc(1)
- debcommit(1)
- manpage-alert(1)
- pts-unsubscribe(1)
- wnpp-alert(1)
- tagpending(1)
- who-permits-upload(1)
- build-rdeps(1)
- whodepends(1)
- plotchangelog(1)
- rc-alert(1)
- deb-janitor(1)
- dch(1)
- uupdate(1)
- pts-subscribe(1)
- hardening-check(1)
- debrebuild(1)
- svnpath(1)
- debdiff(1)
- debchange(1)
- deb-check-file-conflicts(1)
- debrsign(1)
- origtargz(1)
- dget(1)
- salsa(1)
- dep3changelog(1)
- debclean(1)
- list-unreleased(1)
- debootsnap(1)
- edit-patch(1)
- debsnap(1)
- ltnu(1)
- devscripts(7)
apt-get install devscripts
Available languages:
en fr deManual
| DEB2DOCKER(1) | DEB2DOCKER(1) |
NAME
deb2docker - Build a Docker image with given Debian packages
SYNOPSIS
deb2docker [-hB][-c CMD][-f FROM][-n NAME][-o DIR][-p PRE_SCRIPT][-s POST_SCRIPT] packages
DESCRIPTION
deb2docker is a simple script which takes as input a list of Debian packages and generates automatically a Docker container including these packages. A set of freedesktop.org desktop launchers are also generated based on the .desktop and icon files found in the packages. In addition, a desktop launcher is created to start the container in a Terminal.
This tool is suited for deploying applications as containers, as well as for testing Debian packages in a sandbox.
OPTIONS
- -B
- do NOT build the image (default is to build). A build script is generated in the DIR target directory.
- -c EXEC
- Command to run in the container (default to /bin/bash).
- -f FROM
- Distribution is to be used (default to debian:stable).
- -h
- Show this help
- -n NAME
- Name of the image (default is built from the package list).
- -o DIR
- Use given directory DIR for the build (default is in /tmp).
- -p PRE_SCRIPT
- Execute the given script PRE_SCRIPT before packages install.
- -s POST_SCRIPT
- Execute the given script POST_SCRIPT after packages install.
- packages
- The package list can be any Debian package, as well as local .deb files.
FILES
- •
- DIR/README
- •
- DIR/Dockerfile
- •
- DIR/launchers/
- •
- DIR/icons/
- •
- DIR/build
- •
- DIR/start
NOTES
- •
- sudo apt install docker.io
- •
- sudo usermod -aG docker $USER`
You may have to manually configure Docker to pass a proxy configuration.
Usual commands typically used to handle Docker containers are:
- build
- docker build –rm Dockerfile run docker run –rm -it NAME clean docker rmi NAME clean ALL docker system prune -a
EXAMPLES
- •
- deb2docker -o /tmp/xeyes x11-apps
- •
- /tmp/xeyes/start xeyes
A Desktop launcher is created as /tmp/xeyes/launchers/x11-apps-terminal.desktop
- Create a Docker container with x11-apps and meshlab
- deb2docker x11-apps meshlab
- Create a Docker container making sure software channels are active:
- •
- echo “sed -i `s/main/main contrib non-free/g' /etc/apt/sources.list” > pre.sh
- •
- deb2docker -p pre.sh x11-apps
AUTHORS
Emmanuel Farhi (emmanuel.farhi@synchrotron-soleil.fr)
SEE ALSO
deb2apptainer(1), distrobox-create(1), distrobox-enter(1), docker(1), apptainer(1)
AUTHORS
Emmanuel Farhi.
| February 2024 |