Docksal can be installed from a USB drive or a local folder.
This is useful for conferences/trainings/etc. where internet bandwidth is an issue.
A working Docksal 1.2.0+ (fin v1.6.0+) environment is required
The following download script can be used to pre-download most of the dependencies and Docker images..
curl -fsSL https://get.docksal.io/portable | sh
Here’s is what the script will download:
The following download options are available:
SKIP_DEPS
- skip downloading dependencies (use if you plan to use the native Docker for Mac/Win apps or Linux)SKIP_IMAGES
- skip pulling and saving Docker imagesExample:
curl -fsSL https://get.docksal.io/portable | SKIP_DEPS=1 sh
Once downloaded, place the contents of the folder on a USB drive/etc and distribute.
If you plan on using a custom stack configuration, you will have a to export the project images manually.
You can export both system and project images by running the following within a Docksal project folder:
fin image save --system
fin image save --project
This will created two files: docksal-system-images.tar
and docksal-<project-name>-images.tar
.
Instruct users to use the latter file instead of docksal-default-images.tar
when loading stack images (see below).
Manually download Docker for Mac/Windows apps into the portable distribution folder:
Babun is included in the portable distribution, but has to be installed manually before proceeding. All further commands are expected to be run in Babun on Windows.
Docksal’s one-line installer supports portable mode installation and will detect and use local files when available.
This is the recommended setup option.
A minimal internet connection is still necessary to pull fin
and Docksal stack files (~150kB).
Within the portable Docksal distribution folder run:
curl -fsSL https://get.docksal.io | sh
fin vm start
fin image load docksal-default-images.tar
Consider reviewing the docs on switching between “native” applications and VirtualBox.
Install the corresponding Docker app for your OS from the provided portable distribution. Start the app and wait until Docker says it’s running.
Within the portable Docksal distribution folder run:
curl -fsSL https://get.docksal.io | DOCKER_NATIVE=1 sh
fin image load docksal-default-images.tar
Only Docksal system and stack images will be installed from the portable source. All other Docker dependencies and tools will be downloaded from internet (you will need a decent internet connection).
Within the portable Docksal distribution folder run:
curl -fsSL https://get.docksal.io | sh
fin image load docksal-default-images.tar