“Perintah Docker Build” Kode Jawaban

Perintah Docker Build

docker image prune
DonRamon

Perintah Docker Build

docker system prune
Tommyom

Perintah Docker Build

services:
  web:
    external_links:
      - redis_1
      - project_db_1:mysql
Better Buzzard

Perintah Docker Build

docker service ls
Better Buzzard

Perintah Docker Build

# makes the `db` service available as the hostname `database`
  # (implies depends_on)
  links:
    - db:database
    - redis
Better Buzzard

Perintah Docker Build

docker service logs stack_name service_name
Better Buzzard

Perintah Docker Build

# make this service extend another
  extends:
    file: common.yml  # optional
    service: webapp
Better Buzzard

Perintah Docker Build

# build from custom Dockerfile
  build:
    context: ./dir
    dockerfile: Dockerfile.dev
Better Buzzard

Perintah Docker Build

services:
  web:
    labels:
      com.example.description: "Accounting web app"
Better Buzzard

Perintah Docker Build

# expose ports to linked services (not to host)
  expose: ["3000"]
Better Buzzard

Jawaban yang mirip dengan “Perintah Docker Build”

Pertanyaan yang mirip dengan “Perintah Docker Build”

Lebih banyak jawaban terkait untuk “Perintah Docker Build” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya