Hi I'm new to FedoraCoreOs. But I'm trying a very simple probe of concept. I'm trying to load a .tar docker image into the fedora core os local registry at starup. I'm using systemd and a service which will perform the load, but I'm missing something, since the service is executed, but when I type podman images the imaget listed.
This is my unit configuration
cat etc/systemd/system/test.service
[Unit]
Description=My custom service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
Type=oneshot
StandardInput=null
StandardOutput=journal
StandardError=journal+console
RemainAfterExit=yes
ExecStart=/etc/rc.d/init.d/startServiceTest.sh
The script being called is
cat /etc/rc.d/init.d/startServiceTest.sh
#!/usr/bin/env bash
podman load -i /etc/files/docker.tar
When the image boots I check the status of the service and it is run ok service status output
But after that if I check podman images the docker image is not listed. Note: If I run the commands manually it works
Any ideas??