News for hackers. Stuff that matters.
Re:Ask HN: As a web developer, do I have to know what Docker... by turtlebits on Thursday October 26, 2017 @12:46PM (#15560596)
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.

Re:Ask HN: As a web developer, do I have to know what Docker... by stephenr on Thursday October 26, 2017 @11:43PM (#15565558)
See: 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.