Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • N Nomad
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 小 白蛋
  • Nomad
  • Repository
Switch branch/tag
  • nomad
  • drivers
  • docker
  • driver.go
Find file BlameHistoryPermalink
  • Mahmood Ali's avatar
    drivers/docker: rename logging `type` to `driver` · 314d7a0f
    Mahmood Ali authored Feb 28, 2019
    Docker uses the term logging `driver` in its public documentations: in
    `docker` daemon config[1], `docker run` arguments [2] and in docker compose file[3].
    Interestingly, docker used `type` in its API [4] instead of everywhere
    else.
    
    It's unfortunate that Nomad used `type` modeling after the Docker API
    rather than the user facing documents.  Nomad using `type` feels very
    non-user friendly as it's disconnected from how Docker markets the flag
    and shows internal representation instead.
    
    Here, we rectify the situation by introducing `driver` field and
    prefering it over `type` in logging.
    
    [1] https://docs.docker.com/config/containers/logging/configure/
    [2] https://docs.docker.com/engine/reference/run/#logging-drivers---log-driver
    [3] https://docs.docker.com/compose/compose-file/#logging
    [4] https://docs.docker.com/engine/api/v1.39/#operation/ContainerCreate
    314d7a0f

免费DevSecOps平台,让您的项目体验完整的DevSecOps流程,让项目更安全