Skip to content

Docker setup using virtualbox with SMB connection for better disk-io performance

License

Notifications You must be signed in to change notification settings

pimjansen/docker-for-windows-virtualbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-for-windows-virtualbox

Docker setup using virtualbox with SMB connection for better disk-io performance. Compared to native vagrant which hosts are volume from Host > Guest, this box aims to setup the box rom Guest > Host. With this swap Docker can use its native disk for better IO performance. Overall IDE's handle disk io and refreshes in memory pretty well.

Prerequisites

Setup

Before starting the box, please review the configuration options so that the environment is set up correct from the start. Redoing it will probably be a waste of time :-)

vagrant up

Usage

vagrant ssh

After all is up you can use docker native in your development box.

Windows users

For Windows users it is essential to run an ssh agent. To achieve this, put below snippet in you GitBash .bashrc file.

# Edit your ~/.bashrc with below
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa

Volume mounting

To access code from your native host, a SMB share is available at smb://<ip>/vagrantbox. It mounts all working directories to /home/vagrant/repositories

Configuration

SSH & GIT

To make life a little more easy, the SSH key and GIT config of the user that started the Vagrantbox are automaticly copied inside the box. Therefor you should be able to use your normal working flow like you are used to.

Box config

There is a .env file available that holds all settings. Feel free to adjust according your personal needs

About

Docker setup using virtualbox with SMB connection for better disk-io performance

Resources

License

Stars

Watchers

Forks

Packages

No packages published