Skip to content

All docker commands necessary for administration of docker products

Notifications You must be signed in to change notification settings

rahulkrishnanfs/docker-commands-cheatsheat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Docker Cheat Sheet

Docker-machine

Docker-machine will help to provision new docker hosts on different cloud platform. If you are lazy to install docker-engnine from the scratch for every machine you provision then this is the right tool for you.

Provisioning the server on Digital Ocean Cloud provider

Create a new node in the digitalocean infrastructure

$docker-machine create --driver digitalocean \
      --digitalocean-access-token <token> <name of the machine>

SSH to the node

$docker-machine ssh <node>

list the node ip address

$docker-machine ip <node>

List the nodes

$docker-machine ls

Stop the node

$docker-machine stop <node>

Start the node

$docker-machine start <node>

Restart the node

$docker-machine restart <node>

Inspect the details of the node

$docker-machine inspect <node>

Get into the node environment without doing docker-machine ssh and configure your shell

eval "($docker-machine env <node>)"

###To re-run the provision

docker-machine provision <node>

###Ask me on Twitter @rahulkrishnanra .

About

All docker commands necessary for administration of docker products

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published