[๐Ÿณ Docker ๐Ÿณ] ์ด๋ฏธ์ง€ ์••์ถ•ํŒŒ์ผ๋กœ ์ €์žฅ ๋ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

Yohan_05ยท2023๋…„ 2์›” 2์ผ
0

Docker

๋ชฉ๋ก ๋ณด๊ธฐ
10/11
post-custom-banner

์ด๋ฏธ์ง€ ์••์ถ•ํŒŒ์ผ๋กœ ์ €์žฅ

์ด๋ฏธ์ง€๋ฅผ tar ์••์ถ•ํŒŒ์ผ๋กœ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

# docker save -o [OUTPUT-FILE] IMAGE
# ubuntu:focal ์ด๋ฏธ์ง€๋ฅผ ubuntu_focal.tar ์••์ถ• ํŒŒ์ผ๋กœ ์ €์žฅ

$ docker save -o ubuntu_focal.tar ubuntu:focal

์ด๋ฏธ์ง€ ์••์ถ•์—์„œ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

# docker load -i [INPUT_FILE]
# ubuntu_focal.tar ์••์ถ• ํŒŒ์ด๋ ˆ์„œ ubuntu:focal ์ด๋ฏธ์ง€ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

$ docker load -i ubuntu-focal.tar
profile
์•ˆ๋…•ํ•˜์„ธ์š” DevOps ์—”์ง€๋‹ˆ์–ด๋กœ ํ˜„์—…์—์„œ ํ™œ๋™์ค‘์ธ ์š”ํ•œ์ด๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

0๊ฐœ์˜ ๋Œ“๊ธ€