우분투 : 16.04 이미지가 117메가바이트있다 :이 Dockerfile으로사용자 정의 고정 표시기 이미지는 거대한 크기의 성장을 가지고
$ docker images
ubuntu 16.04 6a2f32de169d 5 days ago 117 MB
을 나는 (파이썬 - 필수을 구축하고 곱슬 곱슬) 일부 패키지를 추가 할 유성 :
을 새 이미지를 구축 한 후FROM ubuntu:16.04
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install python -y
RUN apt-get install build-essential -y
RUN apt-get install curl -y
RUN cd ~ && curl https://install.meteor.com/ | sh
...
docker build -t custom-ubuntu .
... 나는 더 후가 1GB를 참조하십시오. 나는
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get install nodejs-legacy -yqq
RUN apt-get install curl -yqq
RUN apt-get clean && apt-get autoclean && apt-get autoremove
RUN curl https://install.meteor.com/ | sh
... 1.2 GB로 시작하고 (850)의 적어도 결과이 Dockerfile를 사용
두 번째 시도
... ...이 엄청난 금액을 이해하지 못하는 MB.이
, 그래서 출력의 시작입니다 당신은RUN apt-get update -y && apt-get upgrade -y
을하고 ... 업데이트가 단지 24메가바이트를 추가해야
Sending build context to Docker daemon 1.202 GB
Step 1/6 : FROM ubuntu:16.04
---> 6a2f32de169d
Step 2/6 : RUN apt-get update -y
---> Running in 4c4cec841f5d
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [187 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [30.0 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [652 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.2 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [577 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [9809 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4929 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [2567 B]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [308 kB]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.8 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [133 kB]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2936 B]
Fetched 23.9 MB in 7s (3184 kB/s)
Reading package lists...
두 번째 시도가 – user3142695
인 게시물이 업데이트되었습니다. 'Docker 데몬 1.202GB에 빌드 컨텍스트 보내기'가 표시됩니다. 그 폴더에는 무엇이 있습니까? Dockerfile 폴더는 비어 있거나 컨테이너 건물에 필요한 것만 사용해야합니다. – OscarAkaElvis