Docker のインストール

https://docs.docker.com/engine/installation/linux/ubuntu/

$ sudo apt-get install curl linux-image-extra-$(uname -r) linux-image-extra-virtual apt-transport-https ca-certificates software-properties-common
$ curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"
$ sudo apt-get update
$ sudo apt-get -y install docker-engine

Docker Compose のインストール

https://github.com/docker/compose/releases

$ sudo su
# curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose

Docker Remote API インタフェース

https://github.com/felixgborrego/docker-ui-chrome-app/wiki/linux

/etc/systemd/system/docker-tcp.socket
[Unit]
Description=Docker HTTP Socket for the API
[Socket]
ListenStream=2375
BindIPv6Only=both
Service=docker.service
[Install]
WantedBy=sockets.target
$ sudo systemctl enable docker-tcp.socket
$ sudo systemctl stop docker
$ sudo systemctl start docker-tcp.socket
$ sudo systemctl start docker

My Docker Containers

  • docker-mirakurun-chinachu
    https://github.com/Chinachu/docker-mirakurun-chinachu
  • docker-portainer

    docker-compose.yml
    version: '2'
    services:
    portainer:
    restart: always
    image: portainer/portainer
    container_name: portainer
    ports:
    - "9000:9000"
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - ./data:/data
  • docker-hexo
    https://github.com/ktkr3d/docker-hexo

  • docker-mistio
    docker-compose.yml
    version: '2'
    services:
    mistio:
    restart: always
    image: mist/mistio
    container_name: mistio
    ports:
    - "8000:8000"