Notification texts go here Contact Us Buy Now!

Tutorial Menginstal Docker Compose di Linux

 


Setelah berhasil menginstal docker di linux, langkah selanjutnya ialah menginstal docker compose untuk mengatur beberapa gambar kontainer docker.

Docker Compose sebuah alat yang berdungsi untuk mendefenisikan dan juga menjalankan aplikasi Docker multi-kontainer. Degnan menggunakan compose kamu bisa menggunakan file YAML untuk melakukan konfigurasi layanan aplikasi. Kamu juga bisa memulai sebuah layanan dari konfigrasi tersebut dengan satu perintah

Instal Docker Compose

Untuk menginstal docker compose ke dalam linux silahkan terlebih dahulu update dan instal wget.
$ sudo apt update
$ sudo apt install -y curl wget
Setelah itu download docker versi latest.
$ curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url  | grep docker-compose-linux-x86_64 | cut -d '"' -f 4 | wget -qi -
kemudian berikan akses.
$ chmod +x docker-compose-linux-x86_64
Pindahkan file pathnya.
$ sudo mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
Untuk menambahkan ke dalam file group root jalankan perintah berikut.
$ sudo usermod -aG docker $USER
Jika sudah silahkan cek apakah sudah terinstal dan dapat di jalankan.
$ docker-compose version

Getting Info...

About the Author

IT Enthusiast

Posting Komentar

Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.