From Fedora Project Wiki
Description
This test case tests whether you can create a container using a Linux distribution other than the default fedora-toolbox image, then that you can enter into it, using it and finally remove it.
Setup
- Ensure the
distrobox
package is installed
How to test
Select one of the distributions supported by distrobox: https://github.com/89luca89/distrobox/blob/main/docs/compatibility.md#containers-distros
- Run
distrobox create -i docker.io/library/debian:stable -n debian
If the container image is not already present on your system, a question asking to pull it should appear. Answer Y
.
- List the available distroboxes on your system with
distrobox list
ordistrobox-list
- Enter the container with
distrobox enter -n debian
- Execute basic operations inside the container, like
ls -la
cat /etc/os-release
sudo whoami
- Exit from the container
- Stop the container (i.e.
podman stop debian
) - Remove the container with
distrobox rm debian
Expected Results
- If applicable, the pull from the registry is successful
- The newly created container is listed
- You can successfully enter into the container
- You can run commands inside the container
- You can remove the container