[Docker&Compose] Docker & compose & auto complete install

Docker & docker-compose & docker-compose auto complete install


ENV

OS : ubuntu 16.04
Docker ver: docker CE 17.12.1 (2018-03-17)
compose-version : 1.19.0

Recommend follow official page install guide


TL; DR

#Docker CE install on Ubuntu 16.04
$ sudo apt-get remove docker docker-engine docker.io\
    && sudo apt-get update \
    && sudo apt-get install  apt-transport-https ca-certificates curl software-properties-common \
    && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – \
    && sudo apt-key fingerprint 0EBFCD88 \
    && sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
    && sudo apt-get update \
    && sudo apt-get install docker-ce

#Docker-compose(1.19.0) install on Ubuntu 16.04
$ sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose \
    && sudo chmod +x /usr/local/bin/docker-compose

# Docker-compose bash complete install on Ubuntu 16.04
$ sudo curl -L https://raw.githubusercontent.com/docker/compose/1.19.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose \
    && source ~/.bashrc
# OR Logout and Login

 


Docker install [link]

$ sudo apt-get remove docker docker-engine docker.io
$ sudo apt-get update
$ sudo apt-get install  apt-transport-https \
     ca-certificates \
     curl \
     software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository \ 
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce

 

Docker-compose install [link]

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

 

Docker-compose auto complete install [link]

$ sudo curl -L https://raw.githubusercontent.com/docker/compose/1.19.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
# source ~/.bashrc OR Logout and Login

If not working then install bash_completion package and retry.

글의 문제가 있다면 댓글을 달아 주세요.

This site uses Akismet to reduce spam. Learn how your comment data is processed.