memo for installing docker-ce on ubuntu 18.04

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

沒有留言:

how to deal with metric scale inconsistency in topn recommendation evaluation

🎯 推薦系統一般會回傳前 N 個排名的物品清單給用戶,稱為 Top‑N 推薦。 遇到推薦模型須要訓練及評估時,習慣先蒐集用戶與物品的互動資料,再將資料拆分成沒有重疊的訓練集及測試集。 模型在訓練時只看得到訓練集,評估時則拿測試集作為驗證的標準答案,以免作...

總網頁瀏覽量