Skip to content

Instantly share code, notes, and snippets.

@aolle
Created August 17, 2016 13:32
Show Gist options
  • Select an option

  • Save aolle/f305d0d1f6453cdc14551706154b46e7 to your computer and use it in GitHub Desktop.

Select an option

Save aolle/f305d0d1f6453cdc14551706154b46e7 to your computer and use it in GitHub Desktop.
Docker run script for postfix
#!/bin/bash
docker run -d --name srv01-postfix \
-v ~/docker/postfix/conf/:/etc/postfix/ \
--net=backend \
--net-alias postfix \
--restart on-failure:5 \
custom_img/postfix \
hostname.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment