3 ms·
For docker w/ docker-compose, I can get a postgres container in <2 seconds with this definition version: "2" services: database: image: postgres
by turtlebits 9y ago
For docker w/ docker-compose, I can get a postgres container in <2 seconds with this definition
version: "2"
services:
database:
image: postgres
environment:
- POSTGRES_PASSWORD=123456
ports:
- "5432:5432"
docker-compose up -d 0.59s user 0.14s system 50% cpu 1.462 total
And restarting it takes < 1 second.
- stephenr 9y agoSee: https://news.ycombinator.com/item?id=15565554 https://news.ycombinator.com/item?id=15565554 You're relying on an existing image. That concept works in Vagrant too. And if you want quick startup and are already on a Linux host, use vagrant-lxc.