sudo su - | |
mkdir -p /opt/bin | |
curl -L https://github.com/docker/compose/releases/download/1.5.1/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose | |
chmod +x /opt/bin/docker-compose |
This comment has been minimized.
This comment has been minimized.
With Docker-compose 1.11.1: |
This comment has been minimized.
This comment has been minimized.
Version 1.11.2: |
This comment has been minimized.
This comment has been minimized.
Version 1.14.0-rc1:
if you run into this exception after installing you might wanna grant your current user the right permissions instead of using sudo: This will add the current user to the group docker |
This comment has been minimized.
This comment has been minimized.
version 1.19.0
no real point in this... just for fun. |
This comment has been minimized.
This comment has been minimized.
Use a container linux file instead of a bash script
|
This comment has been minimized.
This comment has been minimized.
I made a tiny script based on this, for installing the
Just getting the redirect link from https://github.com/docker/compose/releases/latest and checking the tag name, which maps directly to the release version. |
This comment has been minimized.
This comment has been minimized.
@artheus |
This comment has been minimized.
This comment has been minimized.
modified artheus to use /opt/bin,
|
This comment has been minimized.
This comment has been minimized.
The Container Linux Config (
storage:
files:
- path: /opt/bin/docker-compose
filesystem: root
mode: 0755
contents:
remote:
url: https://github.com/docker/compose/releases/download/1.21.2/docker-compose-Linux-x86_64
verification:
hash:
function: sha512
sum: 5A9CCBE01CBF585732907F38FBACC21AECD2EDC9351BD1EE91DF750740A7FFF9D73BD489D708087D9D8892AD8F448A78A8EE401D240A51D0202ED0C08E30BF88 The complete conf (cl.conf)Transpile it to etcd:
name: "{HOSTNAME}"
listen_peer_urls: "http://{PRIVATE_IPV4}:2380"
listen_client_urls: "http://0.0.0.0:2379"
initial_advertise_peer_urls: "http://{PRIVATE_IPV4}:2380"
advertise_client_urls: "http://{PRIVATE_IPV4}:2379"
discovery: "https://discovery.etcd.io/<REPLACE HERE TO YOUR TOKEN>"
storage:
files:
- path: /opt/bin/docker-compose
filesystem: root
mode: 0755
contents:
remote:
url: https://github.com/docker/compose/releases/download/1.21.2/docker-compose-Linux-x86_64
verification:
hash:
function: sha512
sum: 5A9CCBE01CBF585732907F38FBACC21AECD2EDC9351BD1EE91DF750740A7FFF9D73BD489D708087D9D8892AD8F448A78A8EE401D240A51D0202ED0C08E30BF88
systemd:
units:
- name: docker-tcp.socket
enable: true
contents: |
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=2375
Service=docker.service
BindIPv6Only=both
[Install]
WantedBy=sockets.target
- name: flanneld.service
dropins:
- name: 50-network-config.conf
contents: |
[Service]
ExecStartPre=/usr/bin/etcdctl set /flannel/network/config '{ "Network": "10.1.0.0/16" }'
flannel:
etcd_prefix: "/flannel/network" |
This comment has been minimized.
With Docker-compose 1.10.0: