Skip to content

Instantly share code, notes, and snippets.

@codepope
Last active April 14, 2023 15:04
Show Gist options
  • Save codepope/ee813685c30601fc45bd9540314b1e57 to your computer and use it in GitHub Desktop.
Save codepope/ee813685c30601fc45bd9540314b1e57 to your computer and use it in GitHub Desktop.
sed -i -e "/cluster_tags: {}/a\ \n# Enabling static Docker IPs\ndocker_networks:\n- name: demonet\n ipam_config:\n - subnet: 172.18.37.0/24\n gateway: 172.18.37.1\n
s/ node: \([1-4]\)/&\n networks:\n - name: demonet\n ipv4_address: 172.18.37.1\1/g" democluster/config.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment