Docker:up & Running
- C/s Model + Registry
- 3 Large components: Compose (Fig), Machine,swarm
- Bridge ("Docker0") <--> private subnets (available--net off, use the host address directly)
- Stateless architecture: Should the database engine not be dived into the Docker container? VS ' stateful application '
- Stateless applications: Dependencies can be passed through environment variables (you may need to retrofit your existing app's code)
- lightweight:1.4.1 12KB image?
- Immutable infrastructure (+GC? )
- Stack fs (unique hash): Similar to Git, this is a trend
- Image Tags: Easy to manage
- Dockerfile: Each command produces a new FS layer (which guarantees the consistency of functionality, but security can have additional risks)
- From USER ENV RUN ADD workdir CMD
- $ docker run-d-P 8080:8080-e env1= "..." Example/node-hello:latest (Devops? The description here is a little unclear)
- Deploying? Nonissue
- Orchestration:swarm/centurion/helios-Kubernetes/mesos
- Atomic Host:coreos (upgrade OS with just a simple reboot)
- $ sudo ln-sf/usr/bin/docker.io/usr/local/bin/docker
- $ sudo docker-d -H unix:///var/run/docker.sock-h tcp://0.0.0.0:2375
- $ docker Run--rm-ti ubuntu:latest
- Boot2docker? (For Mac and win platforms)
- * Vagrant + CoreOS
- Storage back-end (FS): AUFS,BTRFS,DEVICE-MAPPER,OVERLAYFS
- Registry (versioned managed Docker image, slightly)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Docker:up & Running (reading notes, first half)