Scroll to navigation

DEB2DOCKER(1) DEB2DOCKER(1)

NOM

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

do NOT build the image (default is to build). A build script is generated in the DIR target directory.
Command to run in the container (default to /bin/bash).
Distribution is to be used (default to debian:stable).
Afficher cette aide
Name of the image (default is built from the package list).
Use given directory DIR for the build (default is in /tmp).
Execute the given script PRE_SCRIPT before packages install.
Execute the given script POST_SCRIPT after packages install.
The package list can be any Debian package, as well as local .deb files.

FICHIERS

DIR/README
DIR/Dockerfile
DIR/image.sif
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:

docker build –rm Dockerfile run docker run –rm -it NAME clean docker rmi NAME clean ALL docker system prune -a

EXEMPLES

deb2docker -o /tmp/xeyes x11-apps
/tmp/xeyes/start xeyes

A Desktop launcher is created as /tmp/xeyes/launchers/x11-apps-terminal.desktop

deb2docker x11-apps meshlab
echo “sed -i `s/main/main contrib non-free/g' /etc/apt/sources.list” > pre.sh
deb2docker -p pre.sh x11-apps

AUTEURS

Emmanuel Farhi (emmanuel.farhi@synchrotron-soleil.fr)

VOIR AUSSI

deb2apptainer(1), distrobox-create(1), distrobox-enter(1), docker(1), apptainer(1)

AUTEURS

Emmanuel Farhi.

TRADUCTION

Ce document est une traduction, maintenue à l'aide de l'outil po4a <https://po4a.org/> par l'équipe de traduction francophone du projet Debian.

Nicolas François, Guillaume Delacour, Cyril Brulebois, Thomas Huriaux et David Prévot ont réalisé cette traduction.

L'équipe de traduction a fait le maximum pour réaliser une adaptation française de qualité. Veuillez signaler toute erreur de traduction en écrivant à <debian-l10n-french@lists.debian.org> ou par un rapport de bogue sur le paquet devscripts.

La version anglaise la plus à jour de ce document est toujours consultable en ajoutant l'option « -L C » à la commande man.

Février 2024