Docker Notes

less than 1 minute read


  • 1.”docker-machine create” or “docker-machine ls; docker-machine start”, 2. docker-machine env default 3. eval “$(docker-machine env default)”
  • docker-machine ip default. <-get docker ip.
  • docker-machine restart default. sometime you need it for connect to docker timeout.
  • docker ps -a,
  • docker stop containerid,
  • docker rm containerid
  • docker rmi image

p.s. sometimes need do
a. remove all containers/images and

b.restart docker machine, and everything becomes running normal.

  1. docker stop $(docker ps -a -q)
  2. docker rm $(docker ps -a -q)
  3. docker rmi -f docker images -aq

##Docker-compose: docker-compose rm
docker-compose build
docker-compose up –force-recreate



Leave a Comment