Update Connector on Windows Docker

I’ve read through the updating instructions for ‘docker’ and I’m getting this error: (I know nothing about Docker) :thinking:

'sudo' is not recognized as an internal or external command, operable program or batch file.

when running this command in Windows CMD (admin)

curl -s https://binaries.twingate.com/connector/docker-upgrade.sh | sudo nohup sudo bash

OR

docker curl -s https://binaries.twingate.com/connector/docker-upgrade.sh | sudo nohup sudo bash

OR

docker curl -s https://binaries.twingate.com/connector/docker-upgrade.sh

This prints the script content .

The docker ... | sudo nohup sudo bash command is for updating the Docker container on a Linux machine. sudo in a Linux command that runs the following commands as root and isn’t applicable to Windows.

If you installed via Chocolately, follow these instructions that will use the multipass command.

If you installed via Docker directly, you might be best off by deleting your current Connector and re-provisioning it using the Chocolately guide above.

Chocolately did not work for me. Tried on 2 different machines so I went with Docker Desktop for one connector and Ubuntu (vm) for the backup.

Would love to see a Windows Service as an install option. :innocent:

Sound like the Docker (on windows) option isn’t really recommended?

A native Windows installation is on our roadmap!

Docker on Windows is a supported method, but we’ve seen more brittleness with the networking stack on Docker. Chocolately can be better for this, since it runs the Connector in a VM rather than just a container.

To update your Connector within Docker, in your specific case I would suggest just reinstalling to a new Docker container. Connectors are fungible and, other than downtime, there’s no harm in reinstalling from scratch.

The Docker upgrade script that we’ve written basically does just that. It copies the environment from the a container running a Connector and creates a new container with the same environment.

1 Like