Man page - deb2docker(1)
Packages contains this manual
- devscripts.conf(5)
- build-rdeps(1)
- whodepends(1)
- checkbashisms(1)
- annotate-output(1)
- namecheck(1)
- transition-check(1)
- debrsign(1)
- dpkg-genbuilddeps(1)
- deb-reversion(1)
- ltnu(1)
- debbisect(1)
- cowpoke(1)
- dscextract(1)
- list-unreleased(1)
- getbuildlog(1)
- debclean(1)
- chdist(1)
- rc-alert(1)
- mk-origtargz(1)
- deb2docker(1)
- edit-patch(1)
- what-patch(1)
- dd-list(1)
- tagpending(1)
- suspicious-source(1)
- bts(1)
- deb-why-removed(1)
- devscripts(7)
- plotchangelog(1)
- uscan(1)
- mergechanges(1)
- debsnap(1)
- debftbfs(1)
- hardening-check(1)
- dscverify(1)
- dget(1)
- who-uploads(1)
- debrepro(1)
- git-deborig(1)
- deb-janitor(1)
- deb2apptainer(1)
- dep-14-convert-git-branch-names(1)
- dep3changelog(1)
- wnpp-alert(1)
- pts-unsubscribe(1)
- sadt(1)
- debc(1)
- debdiff-apply(1)
- nmudiff(1)
- add-patch(1)
- dpkg-depcheck(1)
- rmadison(1)
- debsign(1)
- deb2singularity(1)
- diff2patches(1)
- debi(1)
- mk-build-deps(1)
- origtargz(1)
- debrebuild(1)
- deb-check-file-conflicts(1)
- reproducible-check(1)
- mass-bug(1)
- debootsnap(1)
- salsa(1)
- svnpath(1)
- debrelease(1)
- pts-subscribe(1)
- debdiff(1)
- dch(1)
- debcheckout(1)
- wrap-and-sort(1)
- wnpp-check(1)
- manpage-alert(1)
- dcmd(1)
- who-permits-upload(1)
- debchange(1)
- archpath(1)
- debuild(1)
- grep-excuses(1)
- debcommit(1)
- uupdate(1)
apt-get install devscripts
Available languages:
en fr deManual
DEB2DOCKER
BEZEICHNUNGĂBERSICHT
BESCHREIBUNG
OPTIONEN
DATEIEN
ANMERKUNGEN
BEISPIELE
AUTOREN
SIEHE AUCH
AUTOREN
ĂBERSETZUNG
BEZEICHNUNG
deb2docker - Build a Docker image with given Debian packages
ĂBERSICHT
deb2docker [-hB][-c CMD][-f FROM][-n NAME][-o DIR][-p PRE_SCRIPT][-s POST_SCRIPT] packages
BESCHREIBUNG
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.
OPTIONEN
|
-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.
DATEIEN
|
⢠|
DIR/README |
|||
|
⢠|
DIR/Dockerfile |
|||
|
⢠|
DIR/launchers/ |
|||
|
⢠|
DIR/icons/ |
|||
|
⢠|
DIR/build |
|||
|
⢠|
DIR/start |
ANMERKUNGEN
You need of
course to have Docker installed and be part of the
docker
group:
|
⢠|
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 |
BEISPIELE
Create a Docker
container with package
x11-apps
in directory
/tmp/xeyes
, and launch
xeyes
:
|
⢠|
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 |
AUTOREN
Emmanuel Farhi (emmanuel.farhi@synchrotron-soleil.fr)
SIEHE AUCH
deb2apptainer(1), distrobox-create(1), distrobox-enter(1), docker(1), apptainer(1)
AUTOREN
Emmanuel Farhi.
ĂBERSETZUNG
Diese Ăbersetzung wurde mit dem Werkzeug po4a <URL:https://po4a.org/> durch Chris Leick c.leick@vollbio.de im Juli 2012 erstellt und vom deutschen Debian-Ăbersetzer-Team korrekturgelesen. Bitte melden Sie alle Fehler in der Ăbersetzung an debian-l10n-german@lists.debian.org oder als Fehlerbericht an das Paket devscripts . Sie kĂśnnen mit dem folgenden Befehl das englische Original anzeigen Âť man -L C Abschnitt deutsche_Handbuchseite ÂŤ.