Skip to content
Coder Docs

Upgrade

Learn how to upgrade your Coder deployment to a newer version, with steps for each install method.

On this page

This article describes how to upgrade your Coder deployment.

Caution

Prior to upgrading a production Coder deployment, take a database snapshot since Coder does not support rollbacks.

For upgrade recommendations and troubleshooting, see Upgrading Best Practices.

Reinstall Coder to upgrade

To upgrade your Coder deployment, reinstall Coder using your original method of install.

Coder install script

  1. If you installed Coder using the install.sh script, re-run the below command on the host:

    curl -fsSL https://coder.com/install.sh | sh
  2. If you're running Coder as a system service, you can restart it with systemctl:

    systemctl daemon-reload
    systemctl restart coder

Note

In Coder v2.34.0 and later, an option set to an empty value in /etc/coder.d/coder.env no longer keeps its default. The deb, RPM, and apk packages for Coder v2.39 and earlier shipped a CODER_HTTP_ADDRESS= line with no value, and an upgrade keeps your existing file. If the service fails to start with TLS is disabled. Enable with --tls-enable or specify a HTTP address, add a # at the start of that line, and then restart the service.

Other upgrade methods

If you installed using docker-compose, run the below command to upgrade the Coder container:

docker-compose pull coder && docker-compose up -d coder