Difference between revisions of "Docker: Instalasi di Ubuntu 18.04"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 9: | Line 9: | ||
sudo apt install -y docker-ce | sudo apt install -y docker-ce | ||
sudo systemctl status docker | sudo systemctl status docker | ||
+ | |||
+ | Pastikan status docker running | ||
+ | |||
+ | |||
+ | ==Membuat agar tidak perlu sudo lagi== | ||
+ | |||
+ | |||
+ | sudo usermod -aG docker ${USER} | ||
+ | su - ${USER} | ||
+ | id -nG | ||
+ | |||
+ | Atau secara explisit menambahkan username ke group docker | ||
+ | |||
+ | sudo usermod -aG docker username | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[Docker]] | * [[Docker]] |
Revision as of 09:47, 6 December 2018
Instalasi
apt install curl 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 update apt-cache policy docker-ce
sudo apt install -y docker-ce sudo systemctl status docker
Pastikan status docker running
Membuat agar tidak perlu sudo lagi
sudo usermod -aG docker ${USER} su - ${USER} id -nG
Atau secara explisit menambahkan username ke group docker
sudo usermod -aG docker username