@@ -4,15 +4,17 @@ description: Install and upgrade CodeGate using Docker
4
4
sidebar_position : 10
5
5
---
6
6
7
+ import DefaultRunCommand from ' ../partials/_default-run-command.md' ;
8
+
7
9
## Prerequisites
8
10
9
11
CodeGate is distributed as a Docker container. You need a container runtime like
10
12
Docker Desktop or Docker Engine. Podman and Podman Desktop are also supported.
11
13
Windows, macOS, and Linux operating systems are all supported with x86_64 and
12
14
arm64 (ARM and Apple Silicon) CPU architectures.
13
15
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.
16
18
17
19
## Run CodeGate
18
20
@@ -31,9 +33,7 @@ secured/local network, see
31
33
To download and run CodeGate with the recommended configuration for full
32
34
functionality:
33
35
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 />
37
37
38
38
Parameter reference:
39
39
@@ -61,7 +61,7 @@ lost when you stop or restart CodeGate.
61
61
62
62
:::
63
63
64
- ### Alternative run commands {#examples}
64
+ ### Alternative run commands \ { #examples}
65
65
66
66
Run with minimal functionality for use with ** Continue** , ** aider** , or
67
67
** 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
78
78
```
79
79
80
80
** 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:
82
82
83
83
- Patch version: ` ghcr.io/stacklok/codegate:v0.1.15 ` (exact)
84
84
- Minor version: ` ghcr.io/stacklok/codegate:v0.1 ` (latest v0.1.x release)
@@ -143,6 +143,8 @@ flag:
143
143
docker logs --follow codegate
144
144
```
145
145
146
+ To update the logging verbosity, see [ Advanced configuration] ( ./configure.md ) .
147
+
146
148
## Upgrade CodeGate
147
149
148
150
To upgrade CodeGate to the latest version, start by reviewing the
@@ -160,8 +162,16 @@ Stop and remove the current container:
160
162
docker rm --force codegate
161
163
```
162
164
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
+ :::
165
175
166
176
## Manage the CodeGate container
167
177
0 commit comments