This was preventing the alvin/handson-postgres
image from being downloaded:
I had to modify the Dockerfiles and rebuild them for a couple of reasons:
docker pull
only downloads images tagged 'latest'. While this can be circumvented with a-a
flag, it didn't seem to work for me.- the old images were built off ubuntu 12.10 which is deprecated, apt sources for that version is no longer available.
- postgres's default template database uses ASCII. database.yml in Rails had to be updated to use template0 which uses UTF8.
- docker pull alvin/handson-postgres2
- docker pull alvin/handson-dockernotes2
- docker run -t -d --name db alvin/handson-postgres2
- docker ps
- docker run -d -t -p 80:3000 --link db:db alvin/handson-dockernotes2 bundle exec rake db:create
- docker run -d -t -p 80:3000 --link db:db alvin/handson-dockernotes2 bundle exec rake db:migrate
- docker run -d -t -p 80:3000 --link db:db alvin/handson-dockernotes2