podman generated systemd file for mssql-server container

Latest response

Update: I do this podman generate today and I get a different result attached. "pdm0sysd.txt" makes more sense and I will try.

I used "podman generate systemd" for a configured sqlx22 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 manually 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

Responses