Running a Windows container with --detach and --tty results in "nerdctl.exe must be absolute" error message #2966
Labels
kind/unconfirmed-bug-claim
Unconfirmed bug claim
platform/Windows/Non-WSL2
Microsoft Windows (non-WSL2)
Description
Trying to start a Windows container using -d and -t at the same time results in an error as follows:
I discovered this because I have a Windows Jenkins agent and I'm using their Docker plugin's ".inside()" method, which calls starts a container using
docker run -d -t <whatever>
. So far all other functionality has been perfectly Docker compatible, but I can't find a workaround for this. I initially thought the problem was with Jenkins, and the fact that I was running a symlink called "docker.exe" through the Jenkins plugin, however I've been able to consistently replicate the behavior with several different images, calling the nerdctl executable directly, as shown above. I even moved the executable to a directory with no spaces in its name just to eliminate that as a possible issue.Steps to reproduce the issue
nerdctl run -d -t <that image>
Describe the results you received and expected
I should be able to get a daemonized container with a TTY allocated, but instead I get the above error.
What version of nerdctl are you using?
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: