Skip to content

Commit

Permalink
Tunnel 2375 to reach windows daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosnils committed Aug 11, 2017
1 parent 2b61ea7 commit 0c9276a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.ssh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ RUN apk add --no-cache openssh-client

COPY ./windows /root/.ssh/id_rsa

ENTRYPOINT while true; do ssh -q -o StrictHostKeyChecking=no Administrator@${WINDOWS_ENDPOINT}; done
CMD while true; do ssh -L 2375:${WINDOWS_ENDPOINT}:2375 -q -o StrictHostKeyChecking=no Administrator@${WINDOWS_ENDPOINT}; done
2 changes: 1 addition & 1 deletion provisioner/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (d *windows) InstanceNew(session *types.Session, conf types.InstanceConfig)
containerName := fmt.Sprintf("%s_%s", session.Id[:8], conf.Hostname)
opts := docker.CreateContainerOpts{
Image: conf.ImageName,
WindowsEndpoint: winfo.publicIP,
WindowsEndpoint: winfo.privateIP,
SessionId: session.Id,
PwdIpAddress: session.PwdIpAddress,
ContainerName: containerName,
Expand Down

0 comments on commit 0c9276a

Please sign in to comment.