I used "podman generate systemd" for a configured sqlx22 named container and got the attached file which seems to have all the initial configuration command.

 

What would be the minimal revised ExecStart to use after configuration? Do I need to keep specifying name and hostname?

I would think all the -e 's should be omitted? When I start from command line all I use is “sudo podman start sqlx22”.

 

podman generated ExecStart:

ExecStart=/usr/bin/podman run \

--cidfile=%t/%n.ctr-id \

--cgroups=no-conmon \

--rm \

--sdnotify=conmon \

--replace \

-e ACCEPT_EULA=Y \

-e MSSQL_SA_PASSWORD=SQueeZY2*ZX \

-e MSSQL_PID=Express \

--name sqlx22 \

--hostname sqlx22 \

-p 1433:1433 \

-d mcr.microsoft.com/mssql/rhel/server:2022-latest