Note: Windows is used instead of Linux for running docker2exe commands
Issue 1: Duplicate "docker" command in Load() function, at cmd/templates/shim.go:34
cmd := shim.docker("docker", "load") // adds "docker" twice
- Error: docker: 'docker' is not a docker command
- Fix:
cmd := shim.docker("load")
Issue 2: syscall.Exec doesn't work if the development is on Windows, at cmd/templates/shim.go:59-72
return syscall.Exec(cmd.Path, args, os.Environ())
- Error: not supported by windows
- Fix:
cmd := shim.docker(args...)
return cmd.Run() // Works on Windows
Issue 3: TTY flag causes issues on Windows, at cmd/templates/shim.go:97-99
if isatty.IsTerminal(os.Stdout.Fd()) {
args = append(args, "-it") // Causes TTY errors on Windows CMD
}
- Error: the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
Issue 4: Missing feature: Port mapping not included
- Impact: Containers run but ports aren't exposed, so services can't be accessed from the host.
Note: Windows is used instead of Linux for running docker2exe commands
Issue 1: Duplicate "docker" command in Load() function, at
cmd/templates/shim.go:34Issue 2: syscall.Exec doesn't work if the development is on Windows, at
cmd/templates/shim.go:59-72Issue 3: TTY flag causes issues on Windows, at
cmd/templates/shim.go:97-99Issue 4: Missing feature: Port mapping not included