Skip to content

Issues Found in docker2exe v0.2.1 #20

@lawun330

Description

@lawun330

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions