Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ML
- 클래스
- Flutter
- textstyle
- python
- 다트
- map
- texttheme
- Class
- 파이썬
- package
- 플러터
- Collection
- List
- kotlin
- DART
- text
- variable
- function
- animation
- import
- 크롤러
- 콜렉션
- crawler
- 함수
- pushnamed
- 웹크롤러
- Android
- set
- 코틀린
Archives
- Today
- Total
조용한 담장
docker commit 본문
원본 docker image 에 자신이 작업한 내용을 합치고자 할때 docker commit 을 사용 합니다.
1. ubuntu image 를 가져와 실행합니다.
$ docker pull ubuntu
$ docker run -it ubuntu
2. 내가 필요한 작업을 합니다.
root@0a9b63f5f81d:/# apt-get update
root@0a9b63f5f81d:/# apt-get install build-essential wget git python
root@0a9b63f5f81d:/# exit
3. container 0a9b63f5f81d 의 내용을 commit 하여 새로운 이미지를 만듭니다.
$ docker commit -m "ubuntu updated" 0a9b63f5f81d ubuntu:updated
4. 이제 container 에서 작업한 내용이 합쳐져 있는 도커 이미지를 사용할 수 있게 되었습니다.
$ docker run -it ubuntu:updated
root@c0ea496ddd78:/# git --version
git version 2.17.1
'tips' 카테고리의 다른 글
| [python] __import__, importlib.import_module (0) | 2021.08.17 |
|---|---|
| Jest Error: import statement outside a module (0) | 2021.07.29 |
| 간단한 내부 테스트용 HTTP server (0) | 2020.08.11 |
| Debian 10 buster 에서 samba, 윈도우즈 공유 (0) | 2020.03.12 |
| virtualbox 디스크 이미지 크기 줄이기 (Windows host) (0) | 2019.08.01 |
Comments
