Comments (8)
Hi @kkarsten62 thanks for reporting
So you create the container on one machine
Use the commit and save commands
Go to another machine
Restore/import the image, do a distrobox-create
using that image and the distrobox-enter
will fail on the new machine is that right?
Can I have some logs of the various stepst you've taken? Also some Infos about podman or docker versions
from distrobox.
Hi Luca,
I can reproduce it very easily:
- I am on my Laptop with Fedora 33
- Using default podman version 3.3.1, (docker version 20.10.12, build e91ed57) is installed also, but podman is used by default
- Installation of Distrobox was done yesterday using your
curl ...
command - Clean podman environment with
podman container rm ...
andpodman image rm ...
- Create a new image/container by
distrobox-create --name test --image ubuntu:20.04
distrobox-enter --name test
to enter into the container; not further command inside the containerCTRL-D
to step out- Commit container with
podman container commit -p test test_export
podman image ls -a
showslocalhost/test_export:latest
podman save localhost/test_export:latest | gzip > test_export.tar.gz
to export to tar archive filels -alh
shows file with51M 31. Dez 17:32 test_export.tar.gz
- Import back with
podman import test_export.tar.gz
podman image ls -a
shows<none> <none> 9bf3629bf13d
; so I can identify the image by the IMAGE ID- Create Distrobox image/container by
distrobox-create --image 9bf3629bf13d --name test_import
distrobox-enter --name test_import
==> error message appears!
During the process no error message appears - only on finaldistrobox-enter ...
When I import in a Fedora 35 Virtual Machine ==> same error message appears.
Please let my know if you need more information and let me know where I can reach out for log files ...
I will check now on my Ubuntu 18.04 desktop machine.
Karl ...
from distrobox.
Hi Luca,
I checked on my Ubuntu 18.04 Desktop Machine. But now with Docker Version 20.10.12, build e91ed57
The procedure from above brings the following error message on distrobox-enter --name test_import
:
Error response from daemon: unable to find user root: no matching entries in passwd file Error: failed to start containers: test_import
BTW: $USER is in the docker group according to this advice: https://docs.docker.com/engine/install/linux-postinstall/
Karl ...
from distrobox.
Cool thanks for the steps, I can reproduce that
The bad part is that on the imported image not even podman run -ti IMAGE_ID /bin/sh
works, seems like it's an empty image
from distrobox.
Oh got it, you need to use podman load
not podman import
You can see here in the podman documentation: https://docs.podman.io/en/latest/markdown/podman-import.1.html
To import the archive of image layers created by podman save, use podman load.
from distrobox.
I've fixed the wrong command in the documentation, tested the whole procedure using a couple of VMs and it works now, can you confirm?
from distrobox.
Hi Luca,
I did a quick check on my Ubuntu Desktop Machine with Docker and on my Fedora Laptop with Podman.
YES load
is the trick :-)
As a regular user of Docker & Co I am more than impressed to see that all this funny stuff of OS, Gnome, Python, Qt, USB, ANT, MariaDB is working inside your Distrobox container - so many thanks for your great work. It helped me a lot to distribute my self-written Fitness-App from one machine to a next one ... So now I will celebrate Sylvester ...
For me you can close the Issue.
Karl ...
from distrobox.
Cool stuff glad is all fixed :-)
from distrobox.
Related Issues (20)
- [Error] --nvidia is causing error when entering into the container
- [Error] Typo in `generate_enter_command` function of the `distrobox enter` command HOT 1
- [Error] Deleting the export of unexported binary will export it
- Distrobox 1.7.1 fails to find and enter containers when using lilipod 0.0.2 HOT 1
- [Error] Can't delete distrobox installed ubuntu, but can enter it HOT 1
- [Error] distrobox-rm fails even if container is stopped HOT 3
- [Error] `distrobox enter` fails to enter after creating container Error: parsing HOT 7
- [Suggestion] `distrobox system-upgrade` HOT 2
- [Suggestion] Add the subcommands distrobox snapshot & distrobox restore HOT 1
- [Suggestion] Move subsubtopic "Upgrading" in README.md a level up HOT 1
- [Error] - Unable to Start Container Process: Error Mounting "proc" to Rootfs
- Distrobox : exporting container in distrobox with the custom home directory
- [Error] Unable to enter gentoo container with fish as login shell
- Debian 12 box, Wine, DualSense gamepad "Failed to get device that has changed" HOT 1
- Phantom container named NAME when performing operations with --all HOT 3
- [Error] No such file or directory when path contains "at" (@) character
- Arch Distrobox bricking itself on NixOS and won't compile Cargo packages [Error] HOT 2
- Installing basic packages... Error: An error occurred; ubuntu 23.10 (both host and distrobox image) HOT 1
- GUIs crash when conected to the Internet HOT 1
- Containers distros supports Slackware 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distrobox.