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
If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support.
4
+
<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. --->
5
+
6
+
<!--- If this acts as a feature request please ask yourself if this modification is something the whole userbase will benefit from --->
7
+
<!--- If this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
5
8
6
9
<!--- Provide a general summary of the issue in the Title above -->
7
10
@@ -22,9 +25,10 @@ If you are new to Docker or this application our issue tracker is **ONLY** used
22
25
4.
23
26
24
27
## Environment
25
-
**OS:**
26
-
**CPU architecture:** x86_64/arm32/arm64
27
-
**How docker service was installed:**
28
+
**OS:**
29
+
**CPU architecture:** x86_64/arm32/arm64
30
+
**How docker service was installed:**
31
+
<!--- ie. from the official docker repo, from the distro repo, nas OS provided, etc. -->
28
32
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
29
33
30
34
## Command used to create docker container (run/create/compose/screenshot)
<!--- Before submitting a pull request please check the following -->
8
8
9
-
<!--- If this is a fix for a typo in code or documentation in the README please file an issue and let us sort it out we do not need a PR -->
9
+
<!--- If this is a fix for a typo in code or documentation in the README please file an issue and let us sort it out we do not need a PR -->
10
10
<!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
11
11
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
12
12
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
@@ -21,7 +21,11 @@
21
21
22
22
------------------------------
23
23
24
-
We welcome all PR’s though this doesn’t guarantee it will be accepted.
24
+
-[ ] I have read the [contributing](https://github.com/linuxserver/docker-code-server/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
25
+
26
+
------------------------------
27
+
28
+
<!--- We welcome all PR’s though this doesn’t guarantee it will be accepted. -->
[](https://blog.linuxserver.io"all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -70,28 +73,11 @@ This image provides various versions that are available via tags. `latest` tag u
70
73
71
74
Here are some example snippets to help you get started creating a container.
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.
[](https://mods.linuxserver.io/?mod=code-server"view available mods for this container.")
175
+
[](https://mods.linuxserver.io/?mod=code-server"view available mods for this container.")[](https://mods.linuxserver.io/?mod=universal"view available universal mods.")
173
176
174
-
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) can be accessed via the dynamic badge above.
177
+
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.
175
178
176
179
177
180
## Support Info
@@ -189,33 +192,34 @@ Most of our images are static, versioned, and require an image update and contai
189
192
190
193
Below are the instructions for updating containers:
191
194
192
-
### Via Docker Run/Create
193
-
* Update the image: `docker pull linuxserver/code-server`
194
-
* Stop the running container: `docker stop code-server`
195
-
* Delete the container: `docker rm code-server`
196
-
* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
197
-
* Start the new container: `docker start code-server`
198
-
* You can also remove the old dangling images: `docker image prune`
199
-
200
195
### Via Docker Compose
201
196
* Update all images: `docker-compose pull`
202
197
* or update a single image: `docker-compose pull code-server`
203
198
* Let compose update all containers as necessary: `docker-compose up -d`
204
199
* or update a single container: `docker-compose up -d code-server`
205
200
* You can also remove the old dangling images: `docker image prune`
206
201
207
-
### Via Watchtower auto-updater (especially useful if you don't remember the original parameters)
202
+
### Via Docker Run
203
+
* Update the image: `docker pull linuxserver/code-server`
204
+
* Stop the running container: `docker stop code-server`
205
+
* Delete the container: `docker rm code-server`
206
+
* 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)
207
+
* You can also remove the old dangling images: `docker image prune`
208
+
209
+
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
208
210
* Pull the latest image at its tag and replace it with the same env variables in one run:
209
211
```
210
212
docker run --rm \
211
213
-v /var/run/docker.sock:/var/run/docker.sock \
212
214
containrrr/watchtower \
213
215
--run-once code-server
214
216
```
217
+
* You can also remove the old dangling images: `docker image prune`
215
218
216
-
**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.
219
+
**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).
217
220
218
-
* You can also remove the old dangling images: `docker image prune`
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
0 commit comments