podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

TypeError: unhashable type: 'dict'

Open jagusztinl opened this issue 4 years ago • 1 comments

Tried to set up up the DefectDojo project: https://github.com/DefectDojo/django-DefectDojo/blob/master/DOCKER.md

[root@localhost django-DefectDojo]# podman-compose up Traceback (most recent call last): File "/usr/local/bin/podman-compose", line 11, in sys.exit(main()) File "/usr/local/lib/python3.6/site-packages/podman_compose.py", line 1093, in main podman_compose.run() File "/usr/local/lib/python3.6/site-packages/podman_compose.py", line 611, in run self._parse_compose_file() File "/usr/local/lib/python3.6/site-packages/podman_compose.py", line 729, in _parse_compose_file project_name, container_names_by_service, given_containers) File "/usr/local/lib/python3.6/site-packages/podman_compose.py", line 346, in tr_1podfw move_port_fw(pod, containers) File "/usr/local/lib/python3.6/site-packages/podman_compose.py", line 250, in move_port_fw move_list(dst, containers, "ports") File "/usr/local/lib/python3.6/site-packages/podman_compose.py", line 240, in move_list a.update(a0) TypeError: unhashable type: 'dict'

What is the problem? With docker compose works pefectly.

jagusztinl avatar Dec 12 '20 13:12 jagusztinl

It looks like podman compose doesn't support the long form ports definition Port mapping. Try modifying it to be the following just to confirm that that is the issue.

 ports:
   - 8080:8080
   - 8443:8443

argonauts12 avatar Dec 29 '20 09:12 argonauts12