카타코더 Docker - Create Data Containers

1 개요[ | ]

카타코더 Docker - Create Data Containers
카타코더 Docker - Data Containers
카타코더 Docker
# 🔗 제목
카타코더 Docker/1 e
🡵 카타코더 Docker - Deploying Your First Docker Container
🡵 카타코더 Docker - Deploy Static HTML Website as Container
🡵 카타코더 Docker - Building Container Images
🡵 카타코더 Docker - Dockerizing Node.js
🡵 카타코더 Docker - Optimise Builds With Docker OnBuild
🡵 카타코더 Docker - Ignoring Files During Build
🡵 카타코더 Docker - Create Data Containers
🡵 카타코더 Docker - Creating Networks Between Containers using Links
🡵 카타코더 Docker - Creating Networks Between Containers using Networks
🡵 카타코더 Docker - Persisting Data Using Volumes

2 Create Container[ | ]

$ ll
total 16
drwxr-xr-x 1 scrapbook scrapbook 4096 Mar 23 07:20 ./
drwxr-xr-x 1 scrapbook scrapbook 4096 Jan 10 10:12 ../
-rw-r--r-- 1 root      root        10 Mar 23 07:20 config.conf
$ docker create -v /config --name dataContainer busybox
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
697743189b6d: Pull complete
Digest: sha256:061ca9704a714ee3e8b80523ec720c64f6209ad3f97c0ff7cb9ec7d19f15149f
Status: Downloaded newer image for busybox:latest
20ebfda69c18a77eb1581bd818e9a7a76e215cb21264049d0bb5269da27343eb

3 Copy Files[ | ]

$ docker cp config.conf dataContainer:/config/
$

4 Mount Volumes From[ | ]

$ docker run --volumes-from dataContainer ubuntu ls /config
config.conf

5 Export / Import Containers[ | ]

$ docker export dataContainer > dataContainer.tar
$ docker import dataContainer.tar
sha256:ea07c55e972a093c3c178a16ed938051a2dca2873e8c556230fcef216131469f

6 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}