Machine: How can I install additional packages in boot2docker vm?

Created on 20 May 2016  路  2Comments  路  Source: docker/machine

For example utility tracert is not present.
Installing additional packages would be great in order to get better tools for debugging configurations.(especially in corporate environments with multiple network connections and vpns)

Most helpful comment

I needed to install vim, so now I include this line at the end of my /mnt/sda1/var/lib/boot2docker/bootsync.sh file. This will install it every time you restart the docker-machine. You must install as docker. The ampersand at the end forks the command into a background process so you can start using the machine immediatly and wait for vim to finish loading in the background.

sudo su - docker -c 'tce-load -wi vim.tcz &'

Kind of resource intensive though - it downloads the packages for every restart. Requires internet too - don't expect it to work on a plane.

All 2 comments

docker run 馃槈

(Seriously though, if you want to use the TCL package manager very badly, you can do this with tce-load e.g. tce-load -iw rsync)

I needed to install vim, so now I include this line at the end of my /mnt/sda1/var/lib/boot2docker/bootsync.sh file. This will install it every time you restart the docker-machine. You must install as docker. The ampersand at the end forks the command into a background process so you can start using the machine immediatly and wait for vim to finish loading in the background.

sudo su - docker -c 'tce-load -wi vim.tcz &'

Kind of resource intensive though - it downloads the packages for every restart. Requires internet too - don't expect it to work on a plane.

Was this page helpful?
0 / 5 - 0 ratings