Docker Container 이미지로 만들고 push하기

sangjun

·

2024. 5. 22. 17:21

1. Docker Container ID확인

C:\Users\softsec>docker ps
CONTAINER ID   IMAGE                     COMMAND                   CREATED        STATUS      PORTS     NAMES
53e936f90df0   aflplusplus/aflplusplus   "/bin/bash"               2 days ago     Up 2 days             compassionate_black
8998d6074467   smile0304/satc            "/bin/sh -c /home/sa…"   3 weeks ago    Up 4 days             satc
a4ea9f3da1f4   405a5151b0d8              "/bin/zsh"                2 months ago   Up 2 days             ubuntu22

2. Docker Container commit

C:\Users\softsec>docker commit -m "SaTC for TaintChecker" -a "best_collin@naver.com" 8998d6074467 SaTC_TaintChecker:1.0

C:\Users\softsec>docker images
REPOSITORY                   TAG       IMAGE ID       CREATED         SIZE
satc_taintchecker            1.0       a00fefccdc77   2 minutes ago   4.79GB
psj4618/satc_taint_checker   1.0       a00fefccdc77   2 minutes ago   4.79GB
aflplusplus/aflplusplus      latest    6612ffca640e   4 days ago      5.15GB
cl4sm/operation-mango        latest    3ba69dee40b1   2 months ago    2.24GB
psj4618/ubuntu22-new         latest    405a5151b0d8   10 months ago   1.13GB
psj4618/ubuntu18-new         latest    7bbce6e1b94f   10 months ago   1.11GB
psj4618/ubuntu20-new         latest    981c116e30af   10 months ago   1.14GB
psj4618/ubuntu18             latest    212e693e491f   2 years ago     1.07GB
smile0304/satc               latest    f1e2ce760f4b   2 years ago     3.69GB

3. Docker login 하기

docker login

4. Docker push하기

C:\Users\softsec>docker push psj4618/satc_taint_checker:1.0
The push refers to repository [docker.io/psj4618/satc_taint_checker]
341155cfaa36: Pushed
3a1cabfe3208: Mounted from smile0304/satc
e44e780890ec: Mounted from smile0304/satc
bd818142901f: Mounted from smile0304/satc
5f70bf18a086: Mounted from psj4618/ubuntu18
da87686f5a9c: Mounted from smile0304/satc
af73b69f6062: Mounted from smile0304/satc
d485482a99da: Mounted from smile0304/satc
17076ded4f90: Mounted from smile0304/satc
b8c38724968f: Mounted from smile0304/satc
2ecde624fff7: Mounted from smile0304/satc
1251204ef8fc: Mounted from smile0304/satc
47ef83afae74: Mounted from smile0304/satc
df54c846128d: Mounted from smile0304/satc
be96a3f634de: Mounted from smile0304/satc
1.0: digest: sha256:a7072ca9a608a69a410e365cc0cefa7400b5b607c7efc6b452b7d1437629c0b7 size: 3471