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
[](https://blog.linuxserver.io"all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -66,6 +65,7 @@ This image provides various versions that are available via tags. Please read th
66
65
| :----: | :----: |--- |
67
66
| latest | ✅ | Stable releases |
68
67
| insiders | ✅ | Insiders releases |
68
+
69
69
## Application Setup
70
70
71
71
If `CONNECTION_TOKEN` or `CONNECTION_SECRET` env vars are set, you can access the webui at `http://<your-ip>:3000/?tkn=supersecrettoken` (replace `supersecrettoken` with the value set). If not, you can access the webui at `http://<your-ip>:3000`.
@@ -82,7 +82,7 @@ When reverse proxied through SWAG, custom services running on specific ports ins
82
82
83
83
## Usage
84
84
85
-
Here are some example snippets to help you get started creating a container.
85
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
86
86
87
87
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
88
88
@@ -124,12 +124,11 @@ docker run -d \
124
124
-v /path/to/appdata/config:/config \
125
125
--restart unless-stopped \
126
126
lscr.io/linuxserver/openvscode-server:insiders
127
-
128
127
```
129
128
130
129
## Parameters
131
130
132
-
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.
131
+
Containers 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.
133
132
134
133
| Parameter | Function |
135
134
| :----: | --- |
@@ -150,10 +149,10 @@ You can set any environment variable from a file by using a special prepend `FIL
150
149
As an example:
151
150
152
151
```bash
153
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
152
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
154
153
```
155
154
156
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
155
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
157
156
158
157
## Umask for running applications
159
158
@@ -162,15 +161,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
162
161
163
162
## User / Group Identifiers
164
163
165
-
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
164
+
When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
166
165
167
166
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
168
167
169
-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
168
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
* 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)
211
-
* You can also remove the old dangling images: `docker image prune`
273
+
* You can also remove the old dangling images:
274
+
275
+
```bash
276
+
docker image prune
277
+
```
212
278
213
279
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
214
280
215
281
* Pull the latest image at its tag and replace it with the same env variables in one run:
216
282
217
-
```bash
218
-
docker run --rm \
219
-
-v /var/run/docker.sock:/var/run/docker.sock \
220
-
containrrr/watchtower \
221
-
--run-once openvscode-server
222
-
```
283
+
```bash
284
+
docker run --rm \
285
+
-v /var/run/docker.sock:/var/run/docker.sock \
286
+
containrrr/watchtower \
287
+
--run-once openvscode-server
288
+
```
223
289
224
290
* You can also remove the old dangling images: `docker image prune`
225
291
226
-
**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).
292
+
**warning**: 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.
296
+
**tip**: 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