We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3dea2d commit 1e51be6Copy full SHA for 1e51be6
repo2docker/docker.py
@@ -201,7 +201,15 @@ def inspect_image(self, image):
201
return None
202
203
config = json.loads(proc.stdout.decode())[0]
204
- return Image(tags=config["RepoTags"], config=config["Config"])
+ tags = config["RepoTags"]
205
+ oci_image_configuration = config["Config"]
206
+
207
+ # WorkingDir is optional but docker always include it.
208
+ # https://github.com/containers/podman/discussions/27313
209
+ if "WorkingDir" not in oci_image_configuration:
210
+ oci_image_configuration["WorkingDir"] = ""
211
212
+ return Image(tags=config["RepoTags"], config=oci_image_configuration)
213
214
@contextmanager
215
def docker_login(self, username, password, registry):
0 commit comments