Click here to Skip to main content
15,914,400 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: How many here use or plan to use Docker? Pin
Mike Winiberg1-May-18 22:53
professionalMike Winiberg1-May-18 22:53 
GeneralRe: How many here use or plan to use Docker? Pin
kalberts2-May-18 0:45
kalberts2-May-18 0:45 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 0:50
sitebuilderNish Nishant2-May-18 0:50 
AnswerRe: How many here use or plan to use Docker? Pin
Jacquers1-May-18 5:14
Jacquers1-May-18 5:14 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 0:51
sitebuilderNish Nishant2-May-18 0:51 
GeneralRe: How many here use or plan to use Docker? Pin
Jacquers2-May-18 1:08
Jacquers2-May-18 1:08 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 1:15
sitebuilderNish Nishant2-May-18 1:15 
GeneralRe: How many here use or plan to use Docker? Pin
kalberts3-May-18 0:06
kalberts3-May-18 0:06 
You put everything that is to be included into the new image (except the base image) into a subdirecotry at the host. (Keep everything else out of that subdirectory!) In the root of that subdirectory you save the build script (the "Dockerfile") in the script language described at Docker Build Documentation[^].

Using the CLI interface to the daemon, you give a build command, naming your build script (note that other Docker users will frown if it is named something else than "Dockerfile" with no extension). This will not do the build at the host; it will copy the entire subdirectory into the Docker daemon, and the daemon will do the build.

The Dockerfile language is really primitive. Conceptually, the script loads the base image specified (e.g. a Linux base) and RUNs one or more executables (typically some installer), COPY from the directory tree you specified to the file system of the new image, one command line at a time. When all the RUN / COPY commands are performed, the current state, with the newly installed software, is saved as a new image. There is not much more to it, just minor details such as the command to run when the container is started, naming and other optional things.

Your first Dockerfile could consist of three lines

FROM some-baseimage
RUN myprogram-installer.exe
CMD myprogram.exe

"myprogram-installer.exe" would be placed in the directory tree that is copied to the Docker daemon.
"myprogram.exe" lives in the file system of this image only, making up a new layer of your image. It exists inside the Docker daemon only, even there invisible to other images, unless they are built using your image as base).

That's it. There is not much to learn, as long as you know how to run installers and start the application...

Note that since the entire build is done in a black box outside your control, there is no way for you to supply any sort of parameters through a dialog. All choices must be specified as arguments at the RUN line (possibly by naming a parameter file that you have COPYed to the image earlier in the Dockerfile, if the installer can be parametrized that way).
AnswerRe: How many here use or plan to use Docker? Pin
W Balboos, GHB1-May-18 5:19
W Balboos, GHB1-May-18 5:19 
AnswerRe: How many here use or plan to use Docker? Pin
Keith Barrow1-May-18 6:07
professionalKeith Barrow1-May-18 6:07 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 0:53
sitebuilderNish Nishant2-May-18 0:53 
GeneralRe: How many here use or plan to use Docker? Pin
Keith Barrow3-May-18 0:50
professionalKeith Barrow3-May-18 0:50 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant3-May-18 4:29
sitebuilderNish Nishant3-May-18 4:29 
GeneralRe: How many here use or plan to use Docker? Pin
Keith Barrow4-May-18 2:00
professionalKeith Barrow4-May-18 2:00 
AnswerRe: How many here use or plan to use Docker? Pin
Sander Rossel1-May-18 6:42
professionalSander Rossel1-May-18 6:42 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 0:53
sitebuilderNish Nishant2-May-18 0:53 
AnswerRe: How many here use or plan to use Docker? Pin
Marc Clifton1-May-18 12:59
mvaMarc Clifton1-May-18 12:59 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 0:54
sitebuilderNish Nishant2-May-18 0:54 
GeneralRe: How many here use or plan to use Docker? Pin
Marc Clifton2-May-18 12:48
mvaMarc Clifton2-May-18 12:48 
AnswerRe: How many here use or plan to use Docker? Pin
xperroni2-May-18 0:33
xperroni2-May-18 0:33 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 0:55
sitebuilderNish Nishant2-May-18 0:55 
GeneralRe: How many here use or plan to use Docker? Pin
xperroni2-May-18 1:04
xperroni2-May-18 1:04 
GeneralRe: How many here use or plan to use Docker? Pin
Nish Nishant2-May-18 1:15
sitebuilderNish Nishant2-May-18 1:15 
AnswerRe: Now I am totally confused... Pin
Steve Naidamast2-May-18 4:40
professionalSteve Naidamast2-May-18 4:40 
GeneralRe: Now I am totally confused... Pin
Nish Nishant2-May-18 5:06
sitebuilderNish Nishant2-May-18 5:06 

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.