Deploy a Nexus3 in container on VM

Load the image

podman pull sonatype/nexus3:3.59.0
podman save sonatype/nexus3:3.59.0 -o nexus3.tar
podman load < nexus3.tar

Create a service inside /etc/systemd/system/container-nexus3.service with content below:

[Unit]
Description=Nexus Podman container
Wants=syslog.service

[Service]
User=nexus-system
Group=nexus-system
Restart=always
ExecStart=/usr/bin/podman run \
	--log-level=debug \
	--rm \
	-ti \
	--publish 8081:8081 \
	--name nexus \
	sonatype/nexus3:3.59.0

ExecStop=/usr/bin/podman stop -t 10 nexus

[Install]
WantedBy=multi-user.target