Network Quadlet not generating the service? #19838
-
In my butane file I have something like so: variant: fcos
version: 1.5.0
passwd:
users:
- name: core
groups:
- sudo
# ... ssh keys
storage:
files:
- path: /etc/containers/systemd/server.network
contents:
inline: |
[Network]
Subnet=192.168.1.0/24
Gateway=192.168.1.1
NetworkName=server
Label=lan.media.network=server
# ... other network, volume
- path: /etc/containers/systemd/nginx.container
contents:
inline: |
[Unit]
Description=Nginx Quadlet
Requires=podman.socket
After=podman.socket
[Container]
Image=docker.io/nginxproxy/nginx-proxy:alpine
ContainerName=nginx
AutoUpdate=registry
Environment=DOCKER_HOST=unix://${XDG_RUNTIME_DIR}/podman/podman.sock
Network=server.network
PublishPort=80:80/tcp
PublishPort=443:443/tcp
Volume=${XDG_RUNTIME_DIR}/podman/podman.sock:/tmp/docker.sock:ro
Volume=/var/srv/nginx/latest/conf.d/:/etc/nginx/conf.d/:z
Volume=/var/srv/nginx/latest/global/:/etc/nginx/global/:z
Volume=/var/srv/nginx/latest/ssl/:/etc/nginx/ssl/:z
[Service]
User=core
Group=core
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=multi-user.targe
# ... other containers but every container fails as the networks & volumes aren't getting created, on first boot, & are getting a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The
|
Beta Was this translation helpful? Give feedback.
Oh, sorry. My eyes went strait to the
.container
file and missed the.network
one.I think the issue is with the
NetworkName
key in the.network
file. It was only recently added, so, I'm not sure the version you are using supports it. You can checkjournalctl
for errors or do a dry-run by running:/usr/libexec/podman/quadlet --dryrun
.Please note that if you're using this network only via other Quadlet files, it is not really needed