mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-22 19:42:03 +01:00
Update README.md
enhancements chapter 'Updating the container'
This commit is contained in:
parent
9b7cd92696
commit
04c8c1c5ce
21
README.md
21
README.md
@ -118,7 +118,7 @@ docker pull jedisct1/dnscrypt-server
|
|||||||
ls -l /etc/dnscrypt-server/keys
|
ls -l /etc/dnscrypt-server/keys
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have some content here, skip to step 2.
|
If you have some content here, skip to step 3.
|
||||||
|
|
||||||
Nothing here? Maybe you didn't use the `-v` option to map container files to a local directory when creating the container.
|
Nothing here? Maybe you didn't use the `-v` option to map container files to a local directory when creating the container.
|
||||||
In that case, copy the data directly from the container:
|
In that case, copy the data directly from the container:
|
||||||
@ -127,14 +127,20 @@ In that case, copy the data directly from the container:
|
|||||||
docker cp dnscrypt-server:/opt/encrypted-dns/etc/keys ~/keys
|
docker cp dnscrypt-server:/opt/encrypted-dns/etc/keys ~/keys
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Stop the container:
|
3. Stop the existing container:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker stop dnscrypt-server
|
docker stop dnscrypt-server
|
||||||
docker ps # Check that it's not running
|
docker ps # Check that it's not running
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Use the `init` command again and start the new container:
|
4. Rename the existing container:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker rename dnscrypt-server dnscrypt-server-old
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Use the `init` command again and start the new container:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run --name=dnscrypt-server -p 443:443/udp -p 443:443/tcp --net=host \
|
docker run --name=dnscrypt-server -p 443:443/udp -p 443:443/tcp --net=host \
|
||||||
@ -144,9 +150,16 @@ jedisct1/dnscrypt-server init -N example.com -E '192.168.1.1:443'
|
|||||||
# (adjust accordingly)
|
# (adjust accordingly)
|
||||||
|
|
||||||
docker start dnscrypt-server
|
docker start dnscrypt-server
|
||||||
|
docker ps # Check that it's running
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Done!
|
6. Delete old container:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker rm dnscrypt-server-old
|
||||||
|
```
|
||||||
|
|
||||||
|
7. Done!
|
||||||
|
|
||||||
Parameters differ from the ones used in the previous container.
|
Parameters differ from the ones used in the previous container.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user