mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
modified: ru/README.md
This commit is contained in:
parent
61a36e8f1d
commit
d712676618
1 changed files with 10 additions and 10 deletions
14
ru/README.md
14
ru/README.md
|
@ -8,8 +8,8 @@
|
||||||
* [Предпосылки](#Предпосылки)
|
* [Предпосылки](#Предпосылки)
|
||||||
* [Установка](#Установка)
|
* [Установка](#Установка)
|
||||||
* [Контейнеры](#Контейнеры)
|
* [Контейнеры](#Контейнеры)
|
||||||
* [Образы](#images)
|
* [Образы](#Образы)
|
||||||
* [Сеть](#networks)
|
* [Сеть](#Сеть)
|
||||||
* [Реестр и репозиторий](#registry--repository)
|
* [Реестр и репозиторий](#registry--repository)
|
||||||
* [Dockerfile](#dockerfile)
|
* [Dockerfile](#dockerfile)
|
||||||
* [Слои](#layers)
|
* [Слои](#layers)
|
||||||
|
@ -419,7 +419,7 @@ $ALIAS_PORT_1337_TCP_ADDR
|
||||||
Поскольку тома являются изолированными файловыми системами, они часто используются для хранения состояния из вычислений между переходными контейнерами. То есть, у вас может быть контейнер без учета состояния и переходный процесс, запускаемый из скрипта, сдуть его, а затем добавить второй экземпляр переходного контейнера, откуда он остановился.
|
Поскольку тома являются изолированными файловыми системами, они часто используются для хранения состояния из вычислений между переходными контейнерами. То есть, у вас может быть контейнер без учета состояния и переходный процесс, запускаемый из скрипта, сдуть его, а затем добавить второй экземпляр переходного контейнера, откуда он остановился.
|
||||||
|
|
||||||
|
|
||||||
See [advanced volumes](http://crosbymichael.com/advanced-docker-volumes.html) for more details. Container42 is [also helpful](http://container42.com/2014/11/03/docker-indepth-volumes/).
|
См. [Расширенные тома](http://crosbymichael.com/advanced-docker-volumes.html) для больших подробностей. Container42 is [also helpful](http://container42.com/2014/11/03/docker-indepth-volumes/).
|
||||||
|
|
||||||
You can [map MacOS host directories as docker volumes](https://docs.docker.com/engine/tutorials/dockervolumes/#mount-a-host-directory-as-a-data-volume):
|
You can [map MacOS host directories as docker volumes](https://docs.docker.com/engine/tutorials/dockervolumes/#mount-a-host-directory-as-a-data-volume):
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ You can use remote NFS volumes if you're [feeling brave](https://docs.docker.com
|
||||||
|
|
||||||
You may also consider running data-only containers as described [here](http://container42.com/2013/12/16/persistent-volumes-with-docker-container-as-volume-pattern/) to provide some data portability.
|
You may also consider running data-only containers as described [here](http://container42.com/2013/12/16/persistent-volumes-with-docker-container-as-volume-pattern/) to provide some data portability.
|
||||||
|
|
||||||
[Be aware that you can mount files as volumes.](#volumes-can-be-files)
|
[Вы можете [сопоставлять каталоги хостов MacOS в виде докеровских томов]](#volumes-can-be-files)
|
||||||
|
|
||||||
|
|
||||||
## Открытие портов
|
## Открытие портов
|
||||||
|
@ -477,7 +477,7 @@ If you forget what you mapped the port to on the host container, use `docker por
|
||||||
docker port CONTAINER $CONTAINERPORT
|
docker port CONTAINER $CONTAINERPORT
|
||||||
```
|
```
|
||||||
|
|
||||||
## Best Practices
|
## Лучша практика
|
||||||
|
|
||||||
This is where general Docker best practices and war stories go:
|
This is where general Docker best practices and war stories go:
|
||||||
|
|
||||||
|
@ -487,7 +487,7 @@ This is where general Docker best practices and war stories go:
|
||||||
* [Building a Development Environment With Docker](https://tersesystems.com/2013/11/20/building-a-development-environment-with-docker/)
|
* [Building a Development Environment With Docker](https://tersesystems.com/2013/11/20/building-a-development-environment-with-docker/)
|
||||||
* [Discourse in a Docker Container](https://samsaffron.com/archive/2013/11/07/discourse-in-a-docker-container)
|
* [Discourse in a Docker Container](https://samsaffron.com/archive/2013/11/07/discourse-in-a-docker-container)
|
||||||
|
|
||||||
## Security
|
## Безопасность
|
||||||
|
|
||||||
This is where security tips about Docker go. The Docker [security](https://docs.docker.com/engine/security/security/) page goes into more detail.
|
This is where security tips about Docker go. The Docker [security](https://docs.docker.com/engine/security/security/) page goes into more detail.
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ Docker should not be your only defense. You should secure and harden it.
|
||||||
|
|
||||||
For an understanding of what containers leave exposed, you should read [Understanding and Hardening Linux Containers](https://www.nccgroup.trust/globalassets/our-research/us/whitepapers/2016/april/ncc_group_understanding_hardening_linux_containers-1-1.pdf) by [Aaron Grattafiori](https://twitter.com/dyn___). This is a complete and comprehensive guide to the issues involved with containers, with a plethora of links and footnotes leading on to yet more useful content. The security tips following are useful if you've already hardened containers in the past, but are not a substitute for understanding.
|
For an understanding of what containers leave exposed, you should read [Understanding and Hardening Linux Containers](https://www.nccgroup.trust/globalassets/our-research/us/whitepapers/2016/april/ncc_group_understanding_hardening_linux_containers-1-1.pdf) by [Aaron Grattafiori](https://twitter.com/dyn___). This is a complete and comprehensive guide to the issues involved with containers, with a plethora of links and footnotes leading on to yet more useful content. The security tips following are useful if you've already hardened containers in the past, but are not a substitute for understanding.
|
||||||
|
|
||||||
### Security Tips
|
### Советы по безопасности
|
||||||
|
|
||||||
For greatest security, you want to run Docker inside a virtual machine. This is straight from the Docker Security Team Lead -- [slides](http://www.slideshare.net/jpetazzo/linux-containers-lxc-docker-and-security) / [notes](http://www.projectatomic.io/blog/2014/08/is-it-safe-a-look-at-docker-and-security-from-linuxcon/). Then, run with AppArmor / seccomp / SELinux / grsec etc to [limit the container permissions](http://linux-audit.com/docker-security-best-practices-for-your-vessel-and-containers/). See the [Docker 1.10 security features](https://blog.docker.com/2016/02/docker-engine-1-10-security/) for more details.
|
For greatest security, you want to run Docker inside a virtual machine. This is straight from the Docker Security Team Lead -- [slides](http://www.slideshare.net/jpetazzo/linux-containers-lxc-docker-and-security) / [notes](http://www.projectatomic.io/blog/2014/08/is-it-safe-a-look-at-docker-and-security-from-linuxcon/). Then, run with AppArmor / seccomp / SELinux / grsec etc to [limit the container permissions](http://linux-audit.com/docker-security-best-practices-for-your-vessel-and-containers/). See the [Docker 1.10 security features](https://blog.docker.com/2016/02/docker-engine-1-10-security/) for more details.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue