반응형
Docker Image
Save (Image -> tar)
# Docker save [option] [File Name] [Image Name]
Docker save -o nginx.tar nginx:latest
Load (tar -> Image)
# Docker load -l [tar] [File Name]
Docker load -l tar nginx.tar
# Docker load < [File Name]
Docker load < nginx.tar
Docker Container
Export (Container -> tar)
# Docker export [Container ID/Name]>[File Name]
Docker export nginx > nginx.tar
Import (tar -> Container Image)
# Docker import [File Name / URL] -[Container Name[:Tag Name]]
Docker import nginx.tar - nginx:backup20201126
반응형
'Product > Docker' 카테고리의 다른 글
[Docker] Container Root 계정으로 접속 (0) | 2022.01.12 |
---|---|
[Docker] Private Nuget : BaGet 서버 구축 (0) | 2021.07.21 |
[Docker] MariaDB 올리기 (0) | 2021.05.13 |
[Docker] MariaDB 백업/복구 (mysqldump) (0) | 2021.01.12 |
[Docker] 실행중인 Container restart 옵션 추가 (0) | 2021.01.07 |