-
Notifications
You must be signed in to change notification settings - Fork 531
Open
Labels
Description
When trying to make a static IP setting based specifically on this documentation under the "ipv4_address, ipv6_address" section:
https://docs.docker.com/compose/compose-file/compose-file-v3/
I am receiving the "RuntimeError: missing networks: default,podman" error. I have tried a variety of other methods to no avail. it seems that podman-compose is not properly reading the networks: section in the yaml
here is my compose file:
version: '3'
networks:
default:
external:
name: podman
podman:
ipam:
driver: default
config:
- subnet: "10.88.2.0/24"
services:
app:
image: nextcloud
restart: always
volumes:
- ./nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=xxxx
- MYSQL_DATABASE=xxxx
- MYSQL_USER=xxxx
- MYSQL_HOST=xxxx
networks:
podman:
ipv4_address:10.88.2.10
db:
image: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxxx
- MYSQL_PASSWORD=xxxx
- MYSQL_DATABASE=xxxx
- MYSQL_USER=xxxx
networks:
podman:
ipv4_address:10.88.2.11
And here are the results I get:
User@Computer:/DAS/PodmanVolumes/nextcloud$ sudo podman-compose up -d
['podman', '--version', '']
using podman version: 3.2.1
Traceback (most recent call last):
File "/usr/local/bin/podman-compose", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/podman_compose.py", line 1775, in main
podman_compose.run()
File "/usr/local/lib/python3.9/dist-packages/podman_compose.py", line 1022, in run
self._parse_compose_file()
File "/usr/local/lib/python3.9/dist-packages/podman_compose.py", line 1128, in _parse_compose_file
raise RuntimeError(f"missing networks: {missing_nets_str}")
RuntimeError: missing networks: default,podman
I have tried using default as well as "network_mode" neither gave good results.
please let me know if there is any other info needed or things you would like me to try.
banool and sedrubal