docker run -d -p 6003:6003 --name couchdb klaemo/couchdb
echo "alias hoodie='docker run --rm -it --link couchdb:couchdb -v $(pwd):/src --name hoodie greenlizard/hoodie hoodie
'" >> ~/.bash_aliases source ~/.bash_aliases
The alias command lets you use hoodie for running any command inside the hoodie container.
hoodie new HelloWorld
cd HelloWorld
hoodie start
I keep all my dockerfiles in a folder:
dockerfiles/
├── hoodie
│ ├── Dockerfile
│ └── readme
├── base
├── Dockerfile
└── readme
The readme has the build command. For emample - docker build -t hoodie .. I just run it once and add an alias to my .bash_profile
docker run -d -p 6003:5984 --name couchdb klaemo/couchdb
docker run --rm -it --link couchdb:couchdb -v $(pwd):/src -w /src --name hoodie greenlizard/hoodie hoodie
alias hoodie="docker run --rm -i --link couchdb:couchdb -v $(pwd):/src -w /src --name hoodie greenlizard/hoodie hoodie"
docker run --rm -it --link couchdb:couchdb -v $(pwd):/src -w /src greenlizard/hoodie hoodie
Content type
Image
Digest
sha256:51bea1b1e…
Size
119.6 MB
Last updated
almost 11 years ago
docker pull greenlizard/hoodie