You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
109
-
```
109
+
110
+
```bash
110
111
docker run --rm --privileged multiarch/qemu-user-static:register --reset
111
112
```
112
113
113
114
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.
114
115
115
-
## Update the chagelog
116
+
## Update the changelog
116
117
117
118
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-code-server/tree/master/root), add an entry to the changelog
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:
14
14
15
-
* regular and timely application updates
16
-
* easy user mappings (PGID, PUID)
17
-
* custom base image with s6 overlay
18
-
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
19
-
* regular security updates
15
+
* regular and timely application updates
16
+
* easy user mappings (PGID, PUID)
17
+
* custom base image with s6 overlay
18
+
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
19
+
* regular security updates
20
20
21
21
Find us at:
22
+
22
23
*[Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
23
24
*[Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
24
25
*[Discourse](https://discourse.linuxserver.io) - post on our community forum.
@@ -71,6 +72,21 @@ This image provides various versions that are available via tags. `latest` tag u
71
72
| latest | Stable releases |
72
73
| development | DEPRECATED (no longer updated) - Prereleases from their GitHub |
73
74
75
+
## Application Setup
76
+
77
+
Access the webui at `http://<your-ip>:8443`.
78
+
For github integration, drop your ssh key in to `/config/.ssh`.
79
+
Then open a terminal from the top menu and set your github username and email via the following commands
80
+
81
+
```bash
82
+
git config --global user.name "username"
83
+
git config --global user.email "email address"
84
+
```
85
+
86
+
### Hashed code-server password
87
+
88
+
How to create the [hashed password](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#can-i-store-my-password-hashed).
89
+
74
90
## Usage
75
91
76
92
Here are some example snippets to help you get started creating a container.
@@ -104,7 +120,7 @@ services:
104
120
105
121
### docker cli
106
122
107
-
```
123
+
```bash
108
124
docker run -d \
109
125
--name=code-server \
110
126
-e PUID=1000 \
@@ -121,7 +137,6 @@ docker run -d \
121
137
ghcr.io/linuxserver/code-server
122
138
```
123
139
124
-
125
140
## Parameters
126
141
127
142
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
@@ -145,7 +160,7 @@ You can set any environment variable from a file by using a special prepend `FIL
145
160
146
161
As an example:
147
162
148
-
```
163
+
```bash
149
164
-e FILE__PASSWORD=/run/secrets/mysecretpassword
150
165
```
151
166
@@ -164,35 +179,17 @@ Ensure any volume directories on the host are owned by the same user you specify
164
179
165
180
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
For github integration, drop your ssh key in to `/config/.ssh`.
178
-
Then open a terminal from the top menu and set your github username and email via the following commands
179
-
180
-
```bash
181
-
git config --global user.name "username"
182
-
git config --global user.email "email address"
183
-
```
184
-
185
-
### Hashed code-server password
186
-
187
-
How to create the [hashed password](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#can-i-store-my-password-hashed).
188
-
189
-
190
187
## Docker Mods
188
+
191
189
[](https://mods.linuxserver.io/?mod=code-server"view available mods for this container.")[](https://mods.linuxserver.io/?mod=universal"view available universal mods.")
192
190
193
191
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
194
192
195
-
196
193
## Support Info
197
194
198
195
* Shell access whilst the container is running: `docker exec -it code-server /bin/bash`
@@ -209,38 +206,45 @@ Most of our images are static, versioned, and require an image update and contai
209
206
Below are the instructions for updating containers:
210
207
211
208
### Via Docker Compose
209
+
212
210
* Update all images: `docker-compose pull`
213
211
* or update a single image: `docker-compose pull code-server`
214
212
* Let compose update all containers as necessary: `docker-compose up -d`
215
213
* or update a single container: `docker-compose up -d code-server`
216
214
* You can also remove the old dangling images: `docker image prune`
217
215
218
216
### Via Docker Run
217
+
219
218
* Update the image: `docker pull ghcr.io/linuxserver/code-server`
220
219
* Stop the running container: `docker stop code-server`
221
220
* Delete the container: `docker rm code-server`
222
221
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
223
222
* You can also remove the old dangling images: `docker image prune`
224
223
225
224
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
225
+
226
226
* Pull the latest image at its tag and replace it with the same env variables in one run:
227
-
```
227
+
228
+
```bash
228
229
docker run --rm \
229
230
-v /var/run/docker.sock:/var/run/docker.sock \
230
231
containrrr/watchtower \
231
232
--run-once code-server
232
233
```
234
+
233
235
* You can also remove the old dangling images: `docker image prune`
234
236
235
237
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
239
242
240
243
## Building locally
241
244
242
245
If you want to make local modifications to these images for development purposes or just to customize the logic:
0 commit comments