Run it on...
any Linux (kernal version >= 3.8), on...Bare Metal
Vagrant
- DifferencesProvisioning Docker on Vagrant
- Vagrant and Docker
- Differences: Docker vs. Vagrant
Repositories / Imaging
- Docker Registries
- Dogestry - an attempt to improve efficiency / simplicity.
Deployment / Production
- Misconceptions - TL;DR: don't pursue premature optimisation
- Writing the logic - list of tools and approaches
- ambassador pattern - containers that serve as gateways for inter-host container communication
- OpenShift - a point of view
Bugs
Inconsistent persistence of REPO:TAG metadata
pThere appears to be strange behaviour, only partially fixed, in the persistence of the REPO:TAG meta-data of images, across
save
and load
operations. This. Volatile configuration warning
Related to this. Currently (docker-1.1.2), if, while in a container, you change something that happens to be in the domain of the config file (e.g. environmental variables), exit the container, andcommit
the changes to an image(a)... then those changes are lost. Some possible work-arounds: - The "right" way (not always possible):
- after committing an image(a),
docker run [specify config here, e.g. -e HOME=/root/ -e X=123 -e Z=abc]
the image(a),- then
commit
it to an image(b). - The second image will retain the required configurations.
- If you can't (1.) then the emergency method is:
- after committing an image(a),
save
the image(a) to a .tar,- un-tar(a) it,
- find the most recent
json
file, - manually tweak the config files,
- re-tar(b) it,
- then
load
back the image(b). (good lord...)
- (off topic, but relevant) using
.bashrc
properly
- if you're using an image based on one of the public Ubuntu images at Docker Hub,
- then when you execute
docker run OPTIONS IMAGE bash
, - include
-e HOME=/asyoulikeit/
... - ...and bash will load
/asyoulikeit/.bashrc
- (this is just another way to set up an approach to (1.)
'To-do's
- Figure out how AUFS and Docker work, so that backups can be done more effectively, instead of using
save
for every image. - Figure out port forwarding from host->container, and container->host.
No comments :
Post a Comment