Quick Memo for Installing docker-ce on Ubuntu 18.04 # prepare utilities > sudo apt-get update > sudo apt-get install apt-transport-https ca-certificates curl software-properties-common # add key and repository # curl -f fail silently # curl -s silent mode # curl -S show error # curl -L allow redirect > 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 bionic stable" # install docker-ce > sudo apt-get install docker-ce # check docker status > sudo service docker status > sudo systemctl status docker # grant docker permission to specific user 'foobar' > sudo setfacl -m user:foobar:rw /var/run/docker.sock > sudo setfacl -x user:foobar /var/run/docker.sock > getfacl /var/run/docker.sock getfacl: 從絕對路徑名尾部去除“/”字符 # file: var/run/docker.sock # owner: root # group: docker user::rw- user:foobar:rw- group::rw- mask::rw- other::--- > docker image list # disable and unload AppArmor for container removal > sudo aa-status > sudo systemctl disable apparmor.service --now > sudo service apparmor teardown > sudo aa-status Reference: 1.如何在Ubuntu 18.04上安裝與更新Docker 2.How to use Docker without sudo on Ubuntu 3.Play With Docker provides an Alpine Linux 3.10 environment with docker and git ready for use CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz with 8 cores Memory: 32GB Drive: 64GB with 16GB used Limit: Use of up to 5 nodes for up to 4 hours per session
2019年8月21日 星期三
memo for installing docker-ce on ubuntu 18.04
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言