community.docker/plugins/modules
Nik Reiman 9d7dda7292
Fix error for "Cannot locate specified Dockerfile" (#1184)
In 3350283bcc, a subtle bug was introduced
by renaming this variable. For image builds that go down the `else`
branch, they never set this variable, which is then referenced below
when constructing the `params` dict. This results in a very confusing
bug from the Docker backend when trying to construct images:

> An unexpected Docker error occurred: 500 Server Error for
> http+docker://localhost/v1.51/build?t=molecule_local%2Fubuntu%3A24.04&q=False&nocache=False&rm=True&forcerm=True&pull=True&dockerfile=%2Fhome%2Fci%2F.ansible%2Ftmp%2Fmolecule.IaMj.install-github%2FDockerfile_ubuntu_24_04:
> Internal Server Error ("Cannot locate specified Dockerfile:
> /home/ci/.ansible/tmp/molecule.IaMj.install-github/Dockerfile_ubuntu_24_04")

Within the Docker daemon logs, the actual error presents itself like
this:

> level=debug msg="FIXME: Got an API for which error does not match any
> expected type!!!" error="Cannot locate specified Dockerfile:
> $HOME/.ansible/tmp/molecule.5DrS.install-package/Dockerfile_ubuntu_24_04"
> error_type="*errors.fundamental" module=api

Unfortunately, these are all red herrings and the actual cause of the
problem isn't Docker itself or the missing file, but in fact the
`docker_image` module not passing the correct parameter data here.
2025-11-08 10:01:05 +01:00
..
current_container_facts.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_compose_v2_exec.py Fix typing info. (#1183) 2025-11-06 07:15:05 +01:00
docker_compose_v2_pull.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
docker_compose_v2_run.py Fix typing info. (#1183) 2025-11-06 07:15:05 +01:00
docker_compose_v2.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_config.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
docker_container_copy_into.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_container_exec.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_container_info.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_container.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_context_info.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_host_info.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image_build.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_image_export.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image_info.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image_load.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image_pull.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image_push.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image_remove.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image_tag.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_image.py Fix error for "Cannot locate specified Dockerfile" (#1184) 2025-11-08 10:01:05 +01:00
docker_login.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_network_info.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_network.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_node_info.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
docker_node.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_plugin.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_prune.py Add typing information, 1/2 (#1176) 2025-10-23 07:05:42 +02:00
docker_secret.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
docker_stack_info.py Python code modernization, 8/n (#1179) 2025-10-25 00:36:04 +00:00
docker_stack_task_info.py Python code modernization, 8/n (#1179) 2025-10-25 00:36:04 +00:00
docker_stack.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_swarm_info.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
docker_swarm_service_info.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
docker_swarm_service.py Fix typing info. (#1183) 2025-11-06 07:15:05 +01:00
docker_swarm.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_volume_info.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00
docker_volume.py Cleanup with ruff check (#1182) 2025-10-28 06:58:15 +01:00