Tuesday, July 28, 2020

Placement of argument matters - in few commands

--

For a command like podman, where the argument is placed matters.

for example:
 podman run -it  5a934bfaaf12 /bin/bash

This works.

--

If you run the command like
podman run   5a934bfaaf12 -it /bin/bash  -> This fails  where "-it"  is after the image hash. 

It fails saying:
Error: container_linux.go:345: starting container process caused "exec: \"-it\": executable file not found in $PATH"
: OCI runtime error

--

No comments:

Post a Comment