mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-18 17:04:48 -05:00
docs: update docs to reflect updated usages and env variables
This commit is contained in:
@@ -16,15 +16,17 @@ Usage:
|
||||
distrobox create --image alpine:latest --name test --init-hooks "touch /var/tmp/test1 && touch /var/tmp/test2"
|
||||
distrobox create -i docker.io/almalinux/8-init --init --name test --pre-init-hooks "dnf config-manager --enable powertools && dnf -y install epel-release"
|
||||
|
||||
You can also use environment variables to specify container name and image
|
||||
You can also use environment variables to specify container name, image and container manager:
|
||||
|
||||
DBX_NON_INTERACTIVE=1 DBX_CONTAINER_NAME=test-alpine DBX_CONTAINER_IMAGE=alpine distrobox-create
|
||||
DBX_CONTAINER_MANAGER="docker" DBX_NON_INTERACTIVE=1 DBX_CONTAINER_NAME=test-alpine DBX_CONTAINER_IMAGE=alpine distrobox-create
|
||||
|
||||
Supported environment variables:
|
||||
|
||||
DBX_NON_INTERACTIVE
|
||||
DBX_CONTAINER_NAME
|
||||
DBX_CONTAINER_CUSTOM_HOME
|
||||
DBX_CONTAINER_IMAGE
|
||||
DBX_CONTAINER_MANAGER
|
||||
DBX_CONTAINER_NAME
|
||||
DBX_NON_INTERACTIVE
|
||||
|
||||
Options:
|
||||
|
||||
|
||||
@@ -15,9 +15,14 @@ Usage:
|
||||
distrobox-enter --additional-flags "--env MY_VAR=value" --name test -- bash -l
|
||||
MY_VAR=value distrobox-enter --additional-flags "--preserve-fds" --name test -- bash -l
|
||||
|
||||
You can also use environment variables to specify container manager and container name:
|
||||
|
||||
DBX_CONTAINER_MANAGER="docker" DBX_CONTAINER_NAME=test-alpine distrobox-enter
|
||||
|
||||
Supported environment variables:
|
||||
|
||||
DBX_CONTAINER_NAME
|
||||
DBX_CONTAINER_MANAGER
|
||||
|
||||
Options:
|
||||
|
||||
|
||||
@@ -8,6 +8,14 @@ Usage:
|
||||
|
||||
distrobox-list
|
||||
|
||||
You can also use environment variables to specify container manager
|
||||
|
||||
DBX_CONTAINER_MANAGER="docker" distrobox-list
|
||||
|
||||
Supported environment variables:
|
||||
|
||||
DBX_CONTAINER_MANAGER
|
||||
|
||||
Options:
|
||||
|
||||
--help/-h: show this message
|
||||
|
||||
@@ -8,6 +8,16 @@ Usage:
|
||||
distrobox-rm --name container-name [--force]
|
||||
distrobox-rm container-name [-f]
|
||||
|
||||
You can also use environment variables to specify container manager and name:
|
||||
|
||||
DBX_CONTAINER_MANAGER="docker" DBX_CONTAINER_NAME=test-alpine distrobox-rm
|
||||
|
||||
Supported environment variables:
|
||||
|
||||
DBX_CONTAINER_MANAGER
|
||||
DBX_CONTAINER_NAME
|
||||
DBX_NON_INTERACTIVE
|
||||
|
||||
Options:
|
||||
|
||||
--name/-n: name for the distrobox
|
||||
|
||||
@@ -11,6 +11,16 @@ Usage:
|
||||
distrobox-stop --name container-name
|
||||
distrobox-stop container-name
|
||||
|
||||
You can also use environment variables to specify container manager and name:
|
||||
|
||||
DBX_CONTAINER_MANAGER="docker" DBX_CONTAINER_NAME=test-alpine distrobox-stop
|
||||
|
||||
Supported environment variables:
|
||||
|
||||
DBX_CONTAINER_MANAGER
|
||||
DBX_CONTAINER_NAME
|
||||
DBX_NON_INTERACTIVE
|
||||
|
||||
Options:
|
||||
|
||||
--name/-n: name for the distrobox
|
||||
|
||||
Reference in New Issue
Block a user