I am running podman image docker.io/cabelo/opensuse-leap-15.2 as a normal user. When I install packages, exit and connect to the image the packages go missing. I want the packages to remain in the system, please help.
Overview
Thu Dec 10 00:42:22 root@localhost /home/flux]
# cat /etc/sub[gu]id
flux:2000000:65536
flux:2000000:65536
[Thu Dec 10 01:05:33 flux@localhost /tmp]
# grep -v "#" ~/.config/containers/storage.conf | grep .
[storage]
driver = ""
runroot = "/home/flux/.local/run/containers/storage"
graphroot = "/home/flux/.containers/storage"
[storage.options]
additionalimagestores =
]
size = ""
mount_program = "/usr/bin/fuse-overlayfs"
ostree_repo = ""
skip_mount_home = "false"
[storage.options.thinpool]
fs="xfs"
min_free_space = "10%"
Container -
[Thu Dec 10 00:53:05 flux@localhost /tmp]
# podman pull docker.io/cabelo/opensuse-leap-15.2
Trying to pull docker.io/cabelo/opensuse-leap-15.2...
Getting image source signatures
Copying blob 412fc301872e done
Copying config 9a3f2ddcda done
Writing manifest to image destination
Storing signatures
9a3f2ddcdab14d2ca4e00c25b654162f990f61f66732d83ead987cd0ba70d05c
[Thu Dec 10 00:54:13 flux@localhost /tmp]
# podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/cabelo/opensuse-leap-15.2 latest 9a3f2ddcdab1 2 months ago 107 MB
[Thu Dec 10 00:54:17 flux@localhost /tmp]
# podman run -dit 9a3f2ddcdab1 /bin/bash
b030061d2f0bf3e78d8fd3a6a7561767f74fdb833bc302a96f22f52355ee5be4
[Thu Dec 10 00:54:42 flux@localhost /tmp]
# podman run -it 9a3f2ddcdab1 /bin/bash
02be9c63ca38:/ # zypper ref
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Retrieving repository 'OSS' metadata .......................................................................................................................................................................[done]
Building repository 'OSS' cache ............................................................................................................................................................................[done]
All repositories have been refreshed.
02be9c63ca38:/ # zypper up
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Loading repository data...
Reading installed packages...
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Nothing to do.
02be9c63ca38:/ # zypper in nano
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Loading repository data...
Reading installed packages...
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Resolving package dependencies...
The following NEW package is going to be installed:
nano
1 new package to install.
Overall download size: 496.6 KiB. Already cached: 0 B. After the operation, additional 1.5 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):
Retrieving package nano-4.9.2-lp152.1.2.x86_64 (1/1), 496.6 KiB ( 1.5 MiB unpacked)
Retrieving: nano-4.9.2-lp152.1.2.x86_64.rpm ..................................................................................................................................................[done (117.5 KiB/s)]
Checking for file conflicts: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\]warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Checking for file conflicts: ...............................................................................................................................................................................[done]
(1/1) Installing: nano-4.9.2-lp152.1.2.x86_64 ..............................................................................................................................................................[done]
Additional rpm output:
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
02be9c63ca38:/ # exit
exit
[Thu Dec 10 00:57:13 flux@localhost /tmp]
# podman run -it 9a3f2ddcdab1 /bin/bash
2710f14f441f:/ # which nano
bash: which: command not found
2710f14f441f:/ # zypper in which
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Retrieving repository 'OSS' metadata .......................................................................................................................................................................[done]
Building repository 'OSS' cache ............................................................................................................................................................................[done]
Loading repository data...
Reading installed packages...
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Resolving package dependencies...
The following NEW package is going to be installed:
which
1 new package to install.
Overall download size: 38.8 KiB. Already cached: 0 B. After the operation, additional 75.1 KiB will be used.
Continue? [y/n/v/...? shows all options] (y):
Retrieving package which-2.21-lp152.4.114.x86_64 (1/1), 38.8 KiB ( 75.1 KiB unpacked)
Retrieving: which-2.21-lp152.4.114.x86_64.rpm ..................................................................................................................................................[done (5.0 KiB/s)]
Checking for file conflicts: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------/]warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
Checking for file conflicts: ...............................................................................................................................................................................[done]
(1/1) Installing: which-2.21-lp152.4.114.x86_64 ............................................................................................................................................................[done]
Additional rpm output:
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
warning: Found NDB Packages.db database while attempting bdb backend: using ndb backend.
2710f14f441f:/ # which nano
which: no nano in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)