Click here to Skip to main content
15,897,891 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Docker for Windows Pin
RickZeeland28-Feb-19 21:50
mveRickZeeland28-Feb-19 21:50 
AnswerRe: Docker for Windows Pin
Stuart Dootson1-Mar-19 0:23
professionalStuart Dootson1-Mar-19 0:23 
PraiseRe: Docker for Windows Pin
RickZeeland1-Mar-19 0:28
mveRickZeeland1-Mar-19 0:28 
AnswerRe: Docker for Windows Pin
maze31-Mar-19 1:17
professionalmaze31-Mar-19 1:17 
GeneralRe: Docker for Windows Pin
RickZeeland1-Mar-19 1:40
mveRickZeeland1-Mar-19 1:40 
AnswerRe: Docker for Windows Pin
kalberts1-Mar-19 7:14
kalberts1-Mar-19 7:14 
PraiseRe: Docker for Windows Pin
RickZeeland1-Mar-19 7:35
mveRickZeeland1-Mar-19 7:35 
AnswerRe: Docker for Windows Pin
Ryan Peden1-Mar-19 7:14
professionalRyan Peden1-Mar-19 7:14 
One thing to keep in mind is that the base image is immutable and is shared among all Docker services on the machine that use the same base image.

So if you had 5 services that consisted solely of 1mb executables, and they all used the same Windows Nano base image, you'd only use up about 405MB of disk space. The images built on top of the base image are just stored as a set of diffs from the base image. Though I think if you ask Docker how big each image is, it'll report 401MB - the size of the base image plus the diff - so unless you know about the immutable bit, it'll look like you're using up more space than you actually are.

This can make Hello World apps look huge, but you keep in mind you're only going to have one copy of that base image shared across all apps that use it, it's not so bad. If you take care to ensure that all of your apps and services use the same base image, it can be a pretty sane way to deploy your apps to servers, because you'll get the benefits of having your apps completely self-contained without needing to install each one in its own VM.

The massive Hello World isn't as much of an issue on the Linux side of things if you build on top of an Alpine Linux image. I've packaged up a few server apps written in Go, which statically links everything into a single executable, and my whole image (base + diff) was under 10 megabytes.
GeneralRe: Docker for Windows Pin
RickZeeland1-Mar-19 7:38
mveRickZeeland1-Mar-19 7:38 
GeneralRe: Docker for Windows Pin
Ryan Peden1-Mar-19 8:04
professionalRyan Peden1-Mar-19 8:04 
GeneralThought of the Day PinPopular
OriginalGriff28-Feb-19 5:05
mveOriginalGriff28-Feb-19 5:05 
GeneralRe: Thought of the Day Pin
W Balboos, GHB28-Feb-19 5:11
W Balboos, GHB28-Feb-19 5:11 
QuestionRe: Thought of the Day Pin
megaadam28-Feb-19 5:16
professionalmegaadam28-Feb-19 5:16 
GeneralRe: Thought of the Day Pin
lopatir28-Feb-19 5:26
lopatir28-Feb-19 5:26 
GeneralRe: Thought of the Day Pin
OriginalGriff28-Feb-19 6:00
mveOriginalGriff28-Feb-19 6:00 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer28-Feb-19 7:05
professionalDaniel Pfeffer28-Feb-19 7:05 
GeneralRe: Thought of the Day Pin
jeron128-Feb-19 7:18
jeron128-Feb-19 7:18 
Generallet us pray it does not use open-source software ? Pin
BillWoodruff28-Feb-19 4:02
professionalBillWoodruff28-Feb-19 4:02 
GeneralRe: let us pray it does not use open-source software ? Pin
Richard MacCutchan28-Feb-19 4:23
mveRichard MacCutchan28-Feb-19 4:23 
QuestionRe: let us pray it does not use open-source software ? Pin
lopatir28-Feb-19 4:34
lopatir28-Feb-19 4:34 
AnswerRe: let us pray it does not use open-source software ? Pin
maze328-Feb-19 5:25
professionalmaze328-Feb-19 5:25 
GeneralRe: let us pray it does not use open-source software ? Pin
lopatir28-Feb-19 5:49
lopatir28-Feb-19 5:49 
GeneralRe: let us pray it does not use open-source software ? Pin
CodeWraith28-Feb-19 4:49
CodeWraith28-Feb-19 4:49 
GeneralRe: let us pray it does not use open-source software ? Pin
megaadam28-Feb-19 6:02
professionalmegaadam28-Feb-19 6:02 
GeneralRe: let us pray it does not use open-source software ? Pin
Eddy Vluggen28-Feb-19 7:12
professionalEddy Vluggen28-Feb-19 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   332 votes