티스토리 뷰

분류없음

docker on wsl

DogBull 2018.04.10 09:45

기존 제거

sudo mv /var/lib/dpkg/info/docker.* /tmp/

sudo dpkg --remove --force-remove-reinstreq docker.io

sudo apt-get remove docker.io

sudo apt-get autoremove && sudo apt-get autoclean


신규 설치

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 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


echo "export DOCKER_HOST='tcp://0.0.0.0:2375'" >> ~/.bashrc && source ~/.bashrc


댓글
Total
163,877
Today
17
Yesterday
43