tricky

configure files

docker desktop

[!TIP|label:references:]

FILE
MACOS
WINDOWS
LINUX

settings-store.json settings.json(<=v4.34)

~/Library/Group Containers/group.com.docker/settings-store.json

%APPDATA%\Docker\settings-store.json

~/.docker/settings-store.json

.com.apple.containermanagerd.metadata.plist

~/Library/Containers/com.docker.docker/.com.apple.containermanagerd.metadata.plist

-

-

check docker layer

[!NOTE|label:references:]

install

docker with proxy

[!NOTE|label:references:]

  • for socks5

  • or via --build-arg:

  • details

    VARIABLE
    DOCKERFILE EXAMPLE
    DOCKER RUN EXAMPLE

    HTTP_PROXY

    ENV HTTP_PROXY="http://sample.proxy.com:80"

    --env HTTP_PROXY="http://sample.proxy.com:80"

    HTTPS_PROXY

    ENV HTTPS_PROXY="https://sample.proxy.com:80"

    --env HTTPS_PROXY="https://sample.proxy.com:80"

    FTP_PROXY

    ENV FTP_PROXY="ftp://sample.proxy.com:80"

    --env FTP_PROXY="ftp://sample.proxy.com:80"

    NO_PROXY

    ENV NO_PROXY="*.sample.domain1.com,.domain2.com"

    --env NO_PROXY="*.sample.domain1.com,.domain2.com,127.0.0.0/8"

via daemon.json

[!TIP]

docker build with GPG key proxy

  • without proxy

  • GPG with proxy

docker for osx

[!TIP|label:references:]

docker: command cannot be found

docker desktop advanced Settings
  • using user

  • using system

    • modify ~/.docker/config.json if necessary

command-line auto completion

[!TIP] reference:

Linux

  • rpm

setup in bashrc

  • more info

  • setup in bashrc

  • _completion_loader

  • setup in bash

get tags

  • list repos

    example: the docker registry in artifactory named docker

  • or

  • list tags

    example: get tags from repo devops/ubuntu

    • or

get image:tag via jf cli

from docker hub

simple script for get tags

get current container ID

  • or

get volume from container ID

mount volume in DinD

reference:

run inside windows docker image

add contents

  • for multiple line contents

get contents

  • equivalent tail -f

  • equivalent tail -10

list item

execute

Last updated

Was this helpful?