-
Notifications
You must be signed in to change notification settings - Fork 4
Quickstart
To install from source, clone this repository and run make install.
git clone https://github.com/leafoliage/freebsd-dockerbox.gitmake installDownload the dockerbox disk image.
make fetch-diskInstall helper packages.
pkg install grub2-bhyve e2fsprogs docker-cli docker-composeThere is a recent patch to
grub2-bhveanddocker-compose;dockerwould be renamed todocker-cli. Please make sure the "latest" package repository is used instead of quarterly. Check withpkg -vv. Otherwise,grub2-bhyveshould be built from port.
Enable and start the dockerbox service.
sysrc dockerbox_enable=YES
service dockerbox enable
service dockerbox startRun docker command with remote docker specified.
docker -H 10.0.0.1:2375 run hello-worldSee freebsd-dockerbox-port Quickstart.
Starting dockerbox.
service dockerbox startSetup docker context for dockerbox.
docker context create dockerbox --docker "host=ssh://dockerbox@10.0.0.1"
docker context use dockerboxAltervatively, for one-shot use.
docker -H tcp://10.0.0.1:2375 ps
export DOCKER_HOST=tcp://10.0.0.1:2375; docker psDocker run.
docker run hello-worldStopping dockerbox.
service dockerbox stopResize docker data storage.
dockerbox resize 1GAccess dockerbox console with dockerbox built in console command or ssh.
dockerbox console
ssh dockerbox@10.0.0.1Currently only extending storage is supported.
Log is at /var/log/dockerbox.log