News for hackers. Stuff that matters.
Re:Ask HN: Is it just me or why does Docker suck so much? by ndpu on Tuesday August 12, 2014 @06:26PM (#8170537)
You can create "base" image of your application and update only code. Part of our fabric deploy script:

  with api.settings(**env_vars):
    api.run('docker run baseimage sh -c "git pull && cp /src/webapp/settings/paths_docker.py /src/webapp/settings/paths.py"')
    d = datetime.datetime.now().strftime('%Y-%m-%d,%H-%M')
    # new image from last running container with updates
    api.run('docker commit $(docker ps -lq) baseimage:%s' % d)
    api.run('docker stop $(docker ps -aq)')
    api.run('docker run -d -p 127.0.0.1:8073:8083 baseimage:%s sh runindocker.sh' % d)

There are no comments on this comment yet.