@@ -4,15 +4,17 @@ description: Install and upgrade CodeGate using Docker
44sidebar_position : 10
55---
66
7+ import DefaultRunCommand from ' ../partials/_default-run-command.md' ;
8+
79## Prerequisites
810
911CodeGate is distributed as a Docker container. You need a container runtime like
1012Docker Desktop or Docker Engine. Podman and Podman Desktop are also supported.
1113Windows, macOS, and Linux operating systems are all supported with x86_64 and
1214arm64 (ARM and Apple Silicon) CPU architectures.
1315
14- These instructions assume the ` docker ` CLI is available. If you use Podman,
15- replace ` docker ` with ` podman ` in all commands.
16+ These instructions assume you have the ` docker ` CLI available. If you use
17+ Podman, replace ` docker ` with ` podman ` in all commands.
1618
1719## Run CodeGate
1820
@@ -31,9 +33,7 @@ secured/local network, see
3133To download and run CodeGate with the recommended configuration for full
3234functionality:
3335
34- ``` bash
35- docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
36- ```
36+ <DefaultRunCommand />
3737
3838Parameter reference:
3939
@@ -61,7 +61,7 @@ lost when you stop or restart CodeGate.
6161
6262:::
6363
64- ### Alternative run commands {#examples}
64+ ### Alternative run commands \ { #examples}
6565
6666Run with minimal functionality for use with ** Continue** , ** aider** , or
6767** Cline** (omits the HTTP proxy port needed by Copilot):
@@ -78,7 +78,7 @@ docker run --name codegate -d -p 127.0.0.1:8989:8989 -p 127.0.0.1:9090:9090 -p 1
7878```
7979
8080** Install a specific version:** starting with v0.1.4 you can optionally run a
81- specific version of CodeGate using sematic version tags:
81+ specific version of CodeGate using semantic version tags:
8282
8383- Patch version: ` ghcr.io/stacklok/codegate:v0.1.15 ` (exact)
8484- Minor version: ` ghcr.io/stacklok/codegate:v0.1 ` (latest v0.1.x release)
@@ -143,6 +143,8 @@ flag:
143143docker logs --follow codegate
144144```
145145
146+ To update the logging verbosity, see [ Advanced configuration] ( ./configure.md ) .
147+
146148## Upgrade CodeGate
147149
148150To upgrade CodeGate to the latest version, start by reviewing the
@@ -160,8 +162,16 @@ Stop and remove the current container:
160162docker rm --force codegate
161163```
162164
163- Finally, launch the new version using the
164- [ same ` docker run ` command] ( #recommended-settings ) you used originally.
165+ Re-launch with the new image:
166+
167+ <DefaultRunCommand />
168+
169+ :::note
170+
171+ If you customized your ` docker run ` command, use the same command you used
172+ originally.
173+
174+ :::
165175
166176## Manage the CodeGate container
167177
0 commit comments