Просмотр исходного кода

Merge pull request #249 from themegabyte/master

modified docker commands for ease of use
tags/v2.1.5^2
Sergey Arkhipov 4 лет назад
Родитель
Сommit
01e201365b
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 17 добавлений и 1 удалений
  1. 17
    1
      README.md

+ 17
- 1
README.md Просмотреть файл

224
 ee473ce5d4958eb5f968c87680a23854a0676f6f676c652e636f6d
224
 ee473ce5d4958eb5f968c87680a23854a0676f6f676c652e636f6d
225
 ```
225
 ```
226
 
226
 
227
+equivalent commands with docker:
228
+
229
+```console
230
+$ docker run --rm nineseconds/mtg:2 generate-secret google.com
231
+7ibaERuTSGPH1RdztfYnN4tnb29nbGUuY29t
232
+
233
+$ docker run --rm nineseconds/mtg:2 generate-secret --hex google.com
234
+ee473ce5d4958eb5f968c87680a23854a0676f6f676c652e636f6d
235
+```
236
+
227
 This secret is a keystone for a proxy and your password for a client.
237
 This secret is a keystone for a proxy and your password for a client.
228
 You need to keep it secured.
238
 You need to keep it secured.
229
 
239
 
324
 or you can run a docker image
334
 or you can run a docker image
325
 
335
 
326
 ```console
336
 ```console
327
-docker run -d -v /etc/mtg.toml:/config.toml -p 443:3128 --restart=unless-stopped nineseconds/mtg:2
337
+docker run -d -v /etc/mtg.toml:/config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2
328
 ```
338
 ```
329
 
339
 
330
 where _443_ is a host port (a port you want to connect to from a
340
 where _443_ is a host port (a port you want to connect to from a
353
 }
363
 }
354
 ```
364
 ```
355
 
365
 
366
+or if you are using docker:
367
+
368
+```console
369
+$ docker exec mtg-proxy /mtg access /config.toml
370
+```
371
+
356
 ## Metrics
372
 ## Metrics
357
 
373
 
358
 Out of the box, mtg works with
374
 Out of the box, mtg works with

Загрузка…
Отмена
Сохранить