Docker Toolbox for Windows have command line arguments which allows you to install it without user’s involvement.
You can run this command in Windows Command Prompt to get those arguments:
> Downloads\DockerToolbox.exe /HELP
The most useful arguments for automation are:
/SILENT
, /DIR
, /COMPONENTS
, and /TASKS
.
To know what values for
/COMPONENTS
and /TASKS
, you can run this command> Downloads\DockerToolbox.exe /SAVEINF=docker_toolbox.inf
[Setup]
Lang=english
Dir=C:\Program Files\Docker Toolbox
Group=Docker
NoIcons=0
SetupType=full
Components=docker,dockermachine,dockercompose,virtualbox,kitematic,git
Tasks=desktopicon,modifypath,upgradevm
If VirtualBox is already installed and I don’t want to install Kitematic, I can run this command, or put the command into the script to skip them. The installation will be automated.
> Downloads\DockerToolbox.exe /COMPONENTS=docker,dockermachine,dockercompose,git /TASKS=desktopicon,modifypath,upgradevm
No comments:
Post a Comment