Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Create a "distrobox container" #1021

Closed
osalbahr opened this issue Oct 19, 2023 · 4 comments
Closed

[Suggestion] Create a "distrobox container" #1021

osalbahr opened this issue Oct 19, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@osalbahr
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Can't use Distrobox on macOS.

Describe the solution you'd like

As a middle-ground, thoughts on using Distrobox in a container?

Describe alternatives you've considered

podman exec -it fedora-rawhide /bin/bash etc.

Additional context

This idea stems from the ability for using Podman/Docker inside a Distrobox. Does this mean it is possible to use "Distrobox inside a Distrobox" (only one level deep)? Idk, just a thought. Here is what I envision:

[user:host] % podman run -it docker.io/distrobox/distrobox
[distrobox:distrobox] $ distrobox create -i fedora:rawhide
[distrobox:distrobox] $ [now i am using Fedora Rawhide]

I often want to quickly try to test something on multiple distros, and Distrobox is great for that. I am fine with just switching to my Fedora partition and use Distrobox as normal. I'm just curious of the possibility above. Doesn't have to be fully-featured.

@osalbahr osalbahr added the enhancement New feature or request label Oct 19, 2023
@juhp
Copy link
Contributor

juhp commented Oct 20, 2023

+1

(FWIW seems one can use toolbox inside toolbox)

@89luca89
Copy link
Owner

Granted, we now have a Containerfile for a distrobox image 👍

podman run -ti --userns keep-id localhost/distrobox:latest

@osalbahr
Copy link
Contributor Author

Granted, we now have a Containerfile for a distrobox image 👍

podman run -ti --userns keep-id localhost/distrobox:latest

I must be missing something:

$ podman run -ti --userns keep-id localhost/distrobox:latest
Trying to pull localhost/distrobox:latest...
WARN[0000] Failed, retrying in 1s ... (1/3). Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused 
WARN[0001] Failed, retrying in 1s ... (2/3). Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused 
WARN[0002] Failed, retrying in 1s ... (3/3). Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused 
Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused

@89luca89
Copy link
Owner

Granted, we now have a Containerfile for a distrobox image 👍
podman run -ti --userns keep-id localhost/distrobox:latest

I must be missing something:

$ podman run -ti --userns keep-id localhost/distrobox:latest
Trying to pull localhost/distrobox:latest...
WARN[0000] Failed, retrying in 1s ... (1/3). Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused 
WARN[0001] Failed, retrying in 1s ... (2/3). Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused 
WARN[0002] Failed, retrying in 1s ... (3/3). Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused 
Error: initializing source docker://localhost/distrobox:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp [::1]:443: connect: connection refused

you need to build the image

inside the distrobox source folder do podman build . -t distrobox

then you'll have the image

I still haven't bothered to build and push it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants