docker image Á¦ÀÛ(OS)

   Á¶È¸ 8819   Ãßõ 0    

https://www.ehostidc.co.kr/cscenter/consulting.php (649)
https://blog.naver.com/goethe1 (679)




1) 현재 OS 이미지화


[root@localhost /]# tar --numeric-owner --exclude=/proc --exclude=/sys --exclude=/boot --exclude=/usr/lib/firmware --exclude=/usr/lib/modules --exclude=/usr/lib/udev -cvf centos6.tar /

tar --numeric-owner --exclude=/proc --exclude=/sys --exclude=/boot --exclude=/usr/lib/firmware --exclude=/usr/lib/modules --exclude=/usr/lib/udev -cvf [os].tar /

 

2) 압축파일 확인


 

3) scp를 이용한 tar파일 이동 (https://hub.docker.com 사이트를 통해 업로드 가능)


[root@localhost /]# scp centos6.tar [IP]:/home



 

 

4) image import 및 확인





 

5) container 실행


root@localhost:[~]: docker run -it --name centos6 centos6 /bin/bash


* 요약

1.    CentOS6.5 OS이미지 생성(docker설치 X)

2.    생성된 압축파일 이동 (docker가 설치된 CentOS7로 이동)

3.    CentOS7 내 이미지 도킹 및 컨테이너 실행




 


ªÀº±Û Àϼö·Ï ½ÅÁßÇϰÔ.
ÁÁÀº ³»¿ë °¨»çÇÕ´Ï´Ù.

µµÄ¿´Â ´ë¼¼ÀÎ°Í °°½À´Ï´Ù.
ÇÏÀ̹٠2020-07
·¹°¡½ÃOS¸¦ ÄÁÅ×ÀÌ³Ê À̹ÌÁö·Î ¸¸µå´Â ¿¹½Ã³×¿ä
ÁÁÀº ³»¿ë °¨»çÇÕ´Ï´Ù.


PDS
Á¦¸ñPage 19/80
01-26   114708   UPDF
2025-07   381192   Á¤ÀºÁØ1
2019-01   10162   ºó¼¾Æ®1
2025-12   10164   yyms
2023-12   10174   inquisitive
2021-06   10178   »ßµ¹À̽½ÇÄÀÌ
2024-09   10180   ¾Æ½º¶õ
2019-05   10197   ½ºÄµl¹ÎÇö±â
2017-08   10208   NeOpLE
2019-11   10208   °£Àå°ÔÀå
2019-07   10217   À̼±È£
2024-11   10234   Åׯä½Ã¾Æ
2019-04   10286   ÀÛÀº¾Ç¸¶
2016-03   10300   ȸ¿øK
2024-11   10318   AKAÁö´Ï
2021-11   10327   FOXBI
2022-04   10335   ¾ÈöÇö
2024-09   10339   rpki
2019-09   10353   µö·¯´×¼­¹ö
2019-11   10358   ¹Ú°Ç
2024-09   10360   ¿¥ºê¸®¿À
2019-01   10365   ȸ¿øK