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!")
@@ -68,7 +67,7 @@ More info at [syslog-ng](https://www.syslog-ng.com/technical-documents/list/sysl
68
67
69
68
## Usage
70
69
71
-
Here are some example snippets to help you get started creating a container.
70
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
72
71
73
72
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
74
73
@@ -108,12 +107,11 @@ docker run -d \
108
107
-v /path/to/log:/var/log `#optional` \
109
108
--restart unless-stopped \
110
109
lscr.io/linuxserver/syslog-ng:latest
111
-
112
110
```
113
111
114
112
## Parameters
115
113
116
-
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.
114
+
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.
117
115
118
116
| Parameter | Function |
119
117
| :----: | --- |
@@ -133,10 +131,10 @@ You can set any environment variable from a file by using a special prepend `FIL
133
131
As an example:
134
132
135
133
```bash
136
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
134
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
137
135
```
138
136
139
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
137
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
140
138
141
139
## Umask for running applications
142
140
@@ -145,15 +143,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
145
143
146
144
## User / Group Identifiers
147
145
148
-
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`.
146
+
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`.
149
147
150
148
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
151
149
152
-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
150
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
@@ -164,12 +167,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
164
167
165
168
## Support Info
166
169
167
-
* Shell access whilst the container is running: `docker exec -it syslog-ng /bin/bash`
168
-
* To monitor the logs of the container in realtime: `docker logs -f syslog-ng`
169
-
* container version number
170
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' syslog-ng`
171
-
* image version number
172
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/syslog-ng:latest`
170
+
* Shell access whilst the container is running:
171
+
172
+
```bash
173
+
docker exec -it syslog-ng /bin/bash
174
+
```
175
+
176
+
* To monitor the logs of the container in realtime:
177
+
178
+
```bash
179
+
docker logs -f syslog-ng
180
+
```
181
+
182
+
* Container version number:
183
+
184
+
```bash
185
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' syslog-ng
186
+
```
187
+
188
+
* Image version number:
189
+
190
+
```bash
191
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/syslog-ng:latest
192
+
```
173
193
174
194
## Updating Info
175
195
@@ -179,38 +199,83 @@ Below are the instructions for updating containers:
179
199
180
200
### Via Docker Compose
181
201
182
-
* Update all images: `docker-compose pull`
183
-
* or update a single image: `docker-compose pull syslog-ng`
184
-
* Let compose update all containers as necessary: `docker-compose up -d`
185
-
* or update a single container: `docker-compose up -d syslog-ng`
186
-
* You can also remove the old dangling images: `docker image prune`
202
+
* Update images:
203
+
* All images:
204
+
205
+
```bash
206
+
docker-compose pull
207
+
```
208
+
209
+
* Single image:
210
+
211
+
```bash
212
+
docker-compose pull syslog-ng
213
+
```
214
+
215
+
* Update containers:
216
+
* All containers:
217
+
218
+
```bash
219
+
docker-compose up -d
220
+
```
221
+
222
+
* Single container:
223
+
224
+
```bash
225
+
docker-compose up -d syslog-ng
226
+
```
227
+
228
+
* You can also remove the old dangling images:
229
+
230
+
```bash
231
+
docker image prune
232
+
```
187
233
188
234
### Via Docker Run
189
235
190
-
* Update the image: `docker pull lscr.io/linuxserver/syslog-ng:latest`
191
-
* Stop the running container: `docker stop syslog-ng`
192
-
* Delete the container: `docker rm syslog-ng`
236
+
* Update the image:
237
+
238
+
```bash
239
+
docker pull lscr.io/linuxserver/syslog-ng:latest
240
+
```
241
+
242
+
* Stop the running container:
243
+
244
+
```bash
245
+
docker stop syslog-ng
246
+
```
247
+
248
+
* Delete the container:
249
+
250
+
```bash
251
+
docker rm syslog-ng
252
+
```
253
+
193
254
* 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)
194
-
* You can also remove the old dangling images: `docker image prune`
255
+
* You can also remove the old dangling images:
256
+
257
+
```bash
258
+
docker image prune
259
+
```
195
260
196
261
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
197
262
198
263
* Pull the latest image at its tag and replace it with the same env variables in one run:
199
264
200
-
```bash
201
-
docker run --rm \
202
-
-v /var/run/docker.sock:/var/run/docker.sock \
203
-
containrrr/watchtower \
204
-
--run-once syslog-ng
205
-
```
265
+
```bash
266
+
docker run --rm \
267
+
-v /var/run/docker.sock:/var/run/docker.sock \
268
+
containrrr/watchtower \
269
+
--run-once syslog-ng
270
+
```
206
271
207
272
* You can also remove the old dangling images: `docker image prune`
208
273
209
-
**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).
274
+
**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.
278
+
**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