#28 Docker Tutorial | Bind Mount

Опубликовано: 08 Сентябрь 2020
на канале: Kelhe
384
8

See complete series on Docker here:
   • Playlist  

Note: To attach multiple (bind mount) to container use -v/--mount flag more than once

When you use a bind mount, a file or directory on the host machine is mounted into a container.
Bind mounts may be stored anywhere on the host system. They may even be important system files or directories. Non-Docker processes on the Docker host or a Docker container can modify them at any time.

Sharing with 1 or more Containers: allowed

Commands:
$ mkdir target
$ docker run -d \
-it \
--name devtest \
--mount type=bind,source="$(pwd)"/target,target=/app \
nginx:latest

$ docker run -d \
-it \
--name abc \
-v "$(pwd)"/target:/app \
nginx:latest

Reference: https://docs.docker.com/storage/bind-...
-----------------
To Support Us
Like, Share, Subscribe


На этой странице сайта вы можете посмотреть видео онлайн #28 Docker Tutorial | Bind Mount длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Kelhe 08 Сентябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 384 раз и оно понравилось 8 зрителям. Приятного просмотра!