The location of the user config will differ depending on your OS. You can open it via lazydocker by opening the application, clicking on the ‘project’ panel at the top left and pressing ‘o’ (or pressing ‘e’ if your files open in vim).
Changes to the user config will only take place after closing and re-opening lazydocker
~/Library/Application Support/jesseduffield/lazydocker/config.yml~/.config/lazydocker/config.ymlC:\Users\<User>\AppData\Roaming\lazydocker\config.ymlJSON schema is available for config.yml so that IntelliSense in Visual Studio Code
(completion and error checking) is automatically enabled when the YAML Red Hat
extension is installed. However, note that automatic schema detection only works
if your config file is in one of the standard paths mentioned above. If you
override the path to the file, you can still make IntelliSense work by adding
# yaml-language-server: $schema=https://json.schemastore.org/lazydocker.json
to the top of your config file or via Visual Studio Code settings.json config.
gui:
  scrollHeight: 2
  language: "auto" # one of 'auto' | 'en' | 'pl' | 'nl' | 'de' | 'tr'
  border: "rounded" # one of 'rounded' | 'single' | 'double' | 'hidden'
  theme:
    activeBorderColor:
      - green
      - bold
    inactiveBorderColor:
      - white
    selectedLineBgColor:
      - blue
    optionsTextColor:
      - blue
  returnImmediately: false
  wrapMainPanel: true
  # Side panel width as a ratio of the screen's width
  sidePanelWidth: 0.333
  # Determines whether we show the bottom line (the one containing keybinding
  # info and the status of the app).
  showBottomLine: true
  # When true, increases vertical space used by focused side panel,
  # creating an accordion effect
  expandFocusedSidePanel: false
  # Determines which screen mode will be used on startup
  screenMode: "normal" # one of 'normal' | 'half' | 'fullscreen'
  # Determines the style of the container status and container health display in the
  # containers panel. "long": full words (default), "short": one or two characters,
  # "icon": unicode emoji.
  containerStatusHealthStyle: "long"
logs:
  timestamps: false
  since: '60m' # set to '' to show all logs
  tail: '' # set to 200 to show last 200 lines of logs
commandTemplates:
  dockerCompose: docker compose # Determines the Docker Compose command to run, referred to as .DockerCompose in commandTemplates
  restartService: ' restart '
  up:  ' up -d'
  down: ' down'
  downWithVolumes: ' down --volumes'
  upService:  ' up -d '
  startService: ' start '
  stopService: ' stop '
  serviceLogs: ' logs --since=60m --follow '
  viewServiceLogs: ' logs --follow '
  rebuildService: ' up -d --build '
  recreateService: ' up -d --force-recreate '
  allLogs: ' logs --tail=300 --follow'
  viewAlLogs: ' logs'
  dockerComposeConfig: ' config'
  checkDockerComposeConfig: ' config --quiet'
  serviceTop: ' top '
oS:
  openCommand: open 
  openLinkCommand: open 
stats:
  graphs:
    - caption: CPU (%)
      statPath: DerivedStats.CPUPercentage
      color: blue
    - caption: Memory (%)
      statPath: DerivedStats.MemoryPercentage
      color: green
For color attributes you can choose an array of attributes (with max one color attribute) The available attributes are:
You can add custom commands like so:
customCommands:
  containers:
    - name: bash
      attach: true
      command: 'docker exec -it  bash'
      serviceNames: []
You may use the following go templates (such as `` above) in your commands:
docker-compose)](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Container) and its fields. For example:](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Service) and its fields. For example:You can add replacements like so:
replacements:
  imageNamePrefixes:
    '123456789012.dkr.ecr.us-east-1.amazonaws.com': '<prod>'
    '923456789999.dkr.ecr.us-east-1.amazonaws.com': '<dev>'