Commit Graph
43 Commits
Author SHA1 Message Date
Luca Di Maio 589ad7ebf3 create: properly handle platform specification for alien architectures. Fix #1644
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2025-01-19 16:06:13 +01:00
Luca Di Maio 175910fbc2 create: better explain init/pre-init hooks
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-06-29 13:42:43 +02:00
Luca Di Maio 88cce15300 docs: document pipewire/alsa packages for ubuntu initful containers. Fix #1374
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-06-18 17:31:47 +02:00
Luca Di Maio 759b46022c docs: update usages
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-02-22 00:07:53 +01:00
Sandorex d26a926ff7 create: add --hostname argument and DBX_CONTAINER_HOSTNAME env var (#1214)
* Add --hostname argument and DBX_CONTAINER_HOSTNAME env var

* Update usage/distrobox-create.md and useful_tips.md

* Refining error message when hostname is too long
2024-02-18 18:08:36 +01:00
Luca Di Maio d409ce4d5b create/enter: add unshare-groups flag, do proper su login only on usnhare-groups and initful containers. Fix #1208
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-02-16 00:02:33 +01:00
Luca Di Maio a672b4811d docs: update usages for all
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-02-03 17:03:04 +01:00
Osama Albahrani 2f0968d47c all: Bump default container image to Fedora 39 (#1134)
Best-effort, search-and-replace. Checked manually using:

    % rg -iC1 'fedora.*38'

Fedora 39 was released 2023-11-07 (about 2 months ago)

imho, 2 months is enough of a grace period. Thoughts?

- Fixes 89luca89/distrobox#1119
2024-02-01 22:34:23 +01:00
Luca Di Maio 375ef16564 docs: update docs
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-11-19 14:36:07 +01:00
Bas Krahmer c57d97bfc5 create: fix unshare CLI args order (#1022) 2023-11-19 12:08:34 +01:00
Luca Di Maio 2201de4e97 all: add Lilipod container manager support
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-09-15 10:58:15 +02:00
Luca Di Maio 267d584756 docs: improve documentation and man page for initful systems
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-08-28 06:51:24 +00:00
Luca Di Maio 0c4615b308 init: better handle dependency detection, better support OpenRC for initful containers, better document in man pages how to create initful containers
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-08-26 12:15:59 +00:00
Luca Di Maio 025fdc6c54 docs: update docs for new rootful password setup
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-08-07 01:39:10 +02:00
Luca Di Maio eb1d9d8193 docs: document the use of --init with --additional-packages for non-premade systemd images
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-06-15 18:33:46 +02:00
Mišo Barišić ef375be489 docs: fix create docs typo (#700)
Signed-off-by: Mišo Barišić <me@misobarisic.com>
2023-04-16 13:28:04 +02:00
Luca Di Maio f03dcc120a docs: update create usage
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-04-06 23:01:44 +02:00
Luca Di Maio 5a102fcc15 docs: improve man pages layout
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-03-29 09:00:21 +02:00
Luca Di Maio: Luca Di Maio <luca.dimaio1@gmail.com>Dario FaggioliMichael Lingelbach
efd9a293ee init: add nvidia integration (#658)
* init: add nvidia integration

This is a preliminary work to implement host's nVidia driver's
integration, in the guest.

The procedure is simple enough, it will try and find all nVidia related
files in the host, and bind mount them in the guest.

---------

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
Co-authored-by:: Luca Di Maio <luca.dimaio1@gmail.com>
Co-authored-by: Dario Faggioli <dfaggioli@suse.com>
Co-authored-by:  Michael Lingelbach <m.j.lbach@gmail.com>
2023-03-26 16:00:21 +02:00
Luca Di Maio cc4aab9ec4 docs: document new additional-packages flag
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2023-03-09 20:23:29 +01:00
Luca Di Maio e19710d997 docs: add more usage examples
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-11-01 18:01:18 +01:00
Mišo BarišićandLuca Di Maio 9d17088db6 create: add home prefix (#422)
* create: introduce home prefix

Signed-off-by: Mišo Barišić <me@misobarisic.com>
Co-authored-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-10-19 19:16:26 +02:00
Mišo Barišić 7a5a512f1b create: add --no-entry (#404)
* create: add --no-entry

Signed-off-by: Mišo Barišić <me@misobarisic.com>
2022-09-11 11:37:03 +02:00
Luca Di Maio 0e5acdd61f all: bump version to 1.4.0
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-09-07 12:29:56 +02:00
Luca Di Maio 22a0b78476 generate-entry: add new command to create and delete desktop entries for distroboxes
This utility is automatically called by create and rm, so newer
distroboxes created with this version onward will automatically be added
to you applications list.
This tool can also be called separately to create/recreate/remove an
entry.

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-08-28 19:15:18 +02:00
Pg Biel 8f34b9d26e all: oiplement options for sudo program customization (#346) 2022-07-10 22:24:50 +02:00
Luca Di Maio 2a26ab654e docs: improve man pages layout
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-06-22 08:47:30 +02:00
Luca Di Maio ec03ba012f create: update default image to Fedora-Toolbox 36
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-05-25 19:42:53 +02:00
Luca Di Maio 7461d9db4e all: use new default name for distrobox containers to avoid conflicts with toolbx
Right now, default name for a toolbox is `fedora-toolbox-XX`, which
corresponds to the same pattern also distrobox uses for its default.

Change the default behavior to use `my-distrobox` in case no name and no
image are specified, in order to not have clashes with the other
project.

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-05-25 19:38:16 +02:00
Luca Di Maio 4b61fa4e2c create: comments and formatting
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-05-25 18:24:38 +02:00
Jens Petersen 6c40457298 create: --pull/config to pull latest image even if exists (closes #288) (#289)
If either DBX_CONTAINER_ALWAYS_PULL or container_always_pull in config is set,
'create' will pull the latest image without prompting
(even if image already exists locally).
Use this to ensure the new toolbox is based on the most current image
instead of an old out-dated one.
2022-05-25 18:15:03 +02:00
89luca89 66f743037b docs: update docs to reflect updated usages and env variables 2022-05-23 10:09:36 +02:00
Michel Alexandre Salim 62dd2fda8f init: Implement pre-initialization hooks (#269)
* Implement pre-initialization hooks

This implements support for running commands prior to most of the
container initialization. e.g. for RHEL and derivatives you might need
to pre-enable the PowerTools/CRB and EPEL repositories.

Resolves: #220

```
distrobox on  main [!⇡]
✦ ❯ ./distrobox create -i registry.fedoraproject.org/fedora-toolbox:36 f36-packaging
a3cc54e5a820b6bd95286ec142cb3eeab7f72b42cebf6fa0d3c0072035b3bca4
Distrobox 'f36-packaging' successfully created.
To enter, run:

distrobox-enter f36-packaging

distrobox on  main [!⇡]
✦ ❯ ./distrobox enter f36-packaging
Container f36-packaging is not runnung.
Starting container f36-packaging
run this command to follow along:

 podman logs -f f36-packaging

 Starting container...                  	 [ OK ]
 Installing basic packages...           	 [ OK ]
 Setting up read-only mounts...         	 [ OK ]
 Setting up read-write mounts...        	 [ OK ]
 Setting up host's sockets integration...	 [ OK ]
 Integrating host's themes, icons, fonts...	 [ OK ]
 Setting up package manager exceptions...	 [ OK ]
 Setting up sudo...                     	 [ OK ]
 Setting up groups...                   	 [ OK ]
 Setting up users...                    	 [ OK ]
 Executing init hooks...                	 [ OK ]

Container Setup Complete!
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish

distrobox on  main [!⇡]
⬢ [fedora-toolbox:36] ❯
```

Enable PowerTools (recommended to use EPEL) and EPEL Next, so
`distrobox` can install the Fish shell.

```
distrobox on  main [!⇡]
✦ ❯ ./distrobox create -i quay.io/centos/centos:stream8 c8s --pre-init-hooks "dnf config-manager --enable powertools && dnf -y install epel-next-release"
9b17e8cfbf8e7a26abdc7a78b2325e1ee4a9577662b0fe94fbde4260269e1ce3
Distrobox 'c8s' successfully created.
To enter, run:

distrobox-enter c8s

distrobox on  main [!⇡]
✦ ❯ ./distrobox enter c8s
Container c8s is not runnung.
Starting container c8s
run this command to follow along:

 podman logs -f c8s

 Starting container...                  	 [ OK ]
 Executing pre-init hooks...            	 [ OK ]
 Installing basic packages...           	 [ OK ]
 Setting up read-only mounts...         	 [ OK ]
 Setting up read-write mounts...        	 [ OK ]
 Setting up host's sockets integration...	 [ OK ]
 Integrating host's themes, icons, fonts...	 [ OK ]
 Setting up package manager exceptions...	 [ OK ]
 Setting up sudo...                     	 [ OK ]
 Setting up groups...                   	 [ OK ]
 Setting up users...                    	 [ OK ]
 Executing init hooks...                	 [ OK ]

Container Setup Complete!
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish

distrobox on  main
⬢ [centos:stream8] ❯
```

Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>

* Fix typo: s/runnung/running

Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>

* simplify pre-init-hooks detection, add useful tips

Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>

* More changes to address review feedback

- distrobox-init: indent new if block
- distrobox-create: restore quote around pre-init-hooks arguments
- docs/usage: document new create and init options
- docs/useful_tips: explain the rationale behind --pre-init-hooks

Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
2022-05-15 20:14:24 +02:00
89luca89 2ace0e4e73 distrobox: add support for rootful containers
This commit will add the `--root/-r` flag to create,enter,list,rm,stop
commands. This will enable the use of podman/docker in root mode. This
is the preferred way over `sudo distrobox`.

Update man pages and docs accordingly.

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2022-05-01 08:03:03 +02:00
89luca89 bf7c0ba556 CI: add markdownlint to Lint job 2022-04-05 18:21:37 +02:00
89luca89 ac320cc40a docs: update and format docs 2022-04-05 17:12:42 +02:00
89luca89 4e68bde8d7 docs/man: add table of compatibility to man pages, add more links to docker setup #177 2022-02-21 10:41:51 +01:00
89luca89 fbe84f954d create/init: add and document - support for using init systems inside the containers 2022-01-28 23:30:25 +01:00
89luca89 a627a6291d create/enter: add dry-run mode that only prints the command to execute 2022-01-28 21:46:38 +01:00
89luca89 f5b1bec72d docs: update docs 2022-01-27 22:51:47 +01:00
Luca Di Maio e3b1252e7c Support for additional volumes and flags (#136)
* create/enter: support for additional volumes and flags
* docs: update docs and man pages to include new flags
2022-01-22 12:38:53 +01:00
89luca89 04a60e2ea3 docs: update docs 2022-01-13 19:43:14 +01:00
Mišo Barišićand89luca89 b1426f31c6 Create Manuals (#99)
* Create distrobox-create manpage. Include manpage in the install script

Co-authored-by: 89luca89 <luca.dimaio1@gmail.com>
2022-01-13 19:23:12 +01:00