ZULIKHWAN REPOSITORY
  • ZULIKHWAN REPOSITORY
  • Cisco Networking
    • Router
      • IP Route
      • Static Routing
      • RIP
      • OSPF
      • EIGRP
      • BGP
      • VLAN Routing
      • DHCP
      • ACL
      • VPN
      • CDP
    • Switch
      • VLAN
      • VTP
      • STP
      • PoE
      • EtherChannel
      • Link Aggregation
      • BPDU Guard
      • Port Security
      • CDP
  • DNS
  • VPN
    • TwinGate
  • Firewall
    • Firewall
      • Aliase
      • NAT
    • Services
      • DHCP Server
  • Linux
    • WSL
  • Windows
    • WSL
  • Docker
  • Page
  • Interface
    • Twisted Pair Cable
  • Server
    • DNS Server
      • Bind9
      • Pi-hole
      • AdGuardHome
  • Code
    • Filament Laravel
Powered by GitBook
On this page

Docker

Docker

sudo apt install docker.io -y
sudo systemctl enable docker
sudo systemctl start docker

Pengurusan Docker

docker pull <NAMA_IMAGE>:<TAG>

docker run -itd --name <NAMA_CONTAINER> <NAMA_IMAGE>

  1. Untuk mengurus image

  1. Untuk mengurus image

docker pull <NAME_IMAGE>
docker rmi <NAME_IMAGE>

  1. Untuk mengurus container

Selesai image telah dimuat turun, gunakan docker run untuk memulakan docker container.

docker run -itd --name <NAMA_CONTAINER> -p <SERVER_PORT>:<CONTAINER_PORT> <IMAGE>
docker start <NAMA_CONTAINER>
docker stop <NAMA_CONTAINER>
docker restart <NAMA_CONTAINER>
docker ps
  • -a : Senaraikan semua container termasuk container tidak aktif

  • -q : Senaraikan container ID sahaja

docker exec -it 

docker rm <NAMA_CONTAINER>

  1. Docker Networking

  1. Docker Volume

  1. Docker Compose

Last updated 4 months ago