podman_rootless testing environment in a Vagrantbox based on Rocky 9.
- Virtualbox >= 7.0.4
- Vagrant >= 2.3.2
- Vagrant Plugins:
- vagrant plugin install vagrant-hostmanager
- vagrant plugin install vagrant-vbguest
- git clone https://github.com/neikei/podman_rootless-testing-environment.git
- cd podman_rootless-testing-environment
- vagrant up
- ... wait ...
- vagrant ssh
# Run
podman run -dt -v /home/vagrant/volume/:/container/volume:Z --name mycontainer alpine /bin/ash
# Show
podman ps
# Exec
podman exec -it mycontainer /bin/ash
# Container actions
ls -la /container/volume
touch /container/volume/testfile
exit
# Host actions
ls -la /home/vagrant/volume/testfile
# Inspect
podman inspect mycontainer
# Stop
podman stop mycontainer
# Start
podman start mycontainer
# Stop
podman stop mycontainer
# Remove
podman rm mycontainer
Some background about the :Z for volumes.
[vagrant@localhost ~]$ getenforce
Enforcing
[vagrant@localhost ~]$ getsebool -a | grep container
container_connect_any --> off
container_manage_cgroup --> off
container_use_cephfs --> off
container_use_devices --> off
logrotate_read_inside_containers --> off
Feel free to report issues, fork this project and submit pull requests.