You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standard Out is: /bin/bash: sudo test -f /repositories/gubbins/file.txt && echo true: No such file or directory
I have tried many permutations of quotes, double quotes, splitting command up etc but cannot get it to work. The issue appears to be that I am using '&&'. What is the correct way to do this?
What did you expect to happen?:
Expecting to be able to execute the command successfully
Additional information:
The text was updated successfully, but these errors were encountered:
What version of Docker.DotNet?:
Steps to reproduce the issue:
I am trying to check if a file exists on a container. Doing this using a docker exec. I can run the command:
docker exec chrome-node /bin/bash -c "sudo test -f "/repositories/gubbins/file.txt" && echo "true""
In a bash shell and it will do as I desire.
However when I try to execute this using Docker.DotNet as below then it fails:
What actually happened?:
Standard Out is: /bin/bash: sudo test -f /repositories/gubbins/file.txt && echo true: No such file or directory
I have tried many permutations of quotes, double quotes, splitting command up etc but cannot get it to work. The issue appears to be that I am using '&&'. What is the correct way to do this?
What did you expect to happen?:
Expecting to be able to execute the command successfully
Additional information:
The text was updated successfully, but these errors were encountered: