Docker Logo

Docker Toolbox is cool! It is a single point download that gives you everything to get started with Docker. But it comes with other tools like VirtualBox and Kitematic which you may not want. So what do you do?

You install the tools that you like using CLI. This blog shows how to do exactly that.

All the commands are installed in the /usr/bin/local directory.

Latest Docker CLI

This command downloads and installs the latest Docker CLI.

curl -L > /usr/local/bin/docker && 
chmod +x /usr/local/bin/docker

Another simpler way to install and manage different versions of CLI are using Docker Version Manager or dvm.

DVM provides a decent set of commands:

~ > dvm <TAB>
alias        help         list-alias   ls-alias     uninstall    use
current      install      list-remote  ls-remote    unload       version
deactivate   list         ls           unalias      upgrade      which

Latest Docker Machine

This command downloads and installs the latest Docker Machine.

curl -L > /usr/local/bin/docker-machine && 
chmod +x /usr/local/bin/docker-machine

Latest Docker Compose

This command downloads and installs the latest Docker Compose.

curl -L`uname -s`-`uname -m` > /usr/local/bin/docker-compose && 
chmod +x /usr/local/bin/docker-compose



Docker Installation Scripts – CLI, Machine, Compose, Version Manager

About The Author
- Arun Gupta is the vice president of developer advocacy at Couchbase. He has been building developer communities for 10+ years at Sun, Oracle, and Red Hat. He has deep expertise in leading cross-functional teams to develop and execute strategy, planning and execution of content, marketing campaigns, and programs. Prior to that he led engineering teams at Sun and is a founding member of the Java EE team. Gupta has authored more than 2,000 blog posts on technology. He has extensive speaking experience in more than 40 countries on myriad topics and is a JavaOne Rock Star. Gupta also founded the Devoxx4Kids chapter in the US and continues to promote technology education among children. An author of a best-selling book, an avid runner, a globe trotter, a Java Champion, and a JUG leader, he is easily accessible at @arungupta.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>