Documents
Docker Remote API v1.24 https://docs.docker.com/engine/reference/api/docker_remote_api_v1.24/
- Instll docker-compose 1.8.0
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-uname -s
-uname -m
> /usr/local/bin/docker-compose
Operations
-
remove all stopped containers:
docker rm $(docker ps -a -q)
-
remove all untagged images:
docker rmi \((docker images | grep "^<none>" | awk "{print \)3}")
Docker Image Name Convention
参考文献:
- https://github.com/docker/distribution/blob/master/reference/regexp.go
- https://github.com/tombee/swarmkit/blob/75c8864db36770b1d6cdad8b8311155ee521833c/manager/controlapi/common.go#L13
3. https://github.com/docker/docker/blob/master/docs/reference/commandline/tag.md
Basic Private Registry
https://docs.docker.com/registry/#/tl-dr
Others
- Be aware how changes to package.json affect image cache when building NodeJS apps
Docker 1.12 Questions
Which mode is the default mode ? vip or dnsrr ?
seems like dnsrr
is the default mode.
References:
etcd_browser http://henszey.github.io/etcd-browser/
enter running container
docker exec -it [container-id] bash
docker mysql storage
docker run --name <Container-Name> -p 0.0.0.0:12345:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
mysql --user <User> --host <Host> --port <Port>
docker danglingimages http://www.projectatomic.io/blog/2015/07/what-are-docker-none-none-images/
docker-compose up never rebuilds an image. You can run docker-compose build to build the images.