docker

docker internals

docker internals

cgoups

docker cgoups

namespace

docker namespace

init

[!NOTE|label:references:]

install

[!NOTE|label:references:]

  • environment cleanup

  • repo setup

  • install

    • to get available version:

  • enable service

  • account settings

  • teardown

troubleshooting

problem with installed package podman

Error: Transaction test error

  • issue

  • solution: using latest docker-ce-cli

upgrade

auto-completion

  • docker completion : _start_docker

    [!NOTE|label:references:]

  • universal solution : _docker

  • ubuntu

complete alias

  • load completion

osx

  • result

docker build

Best practices for writing Dockerfiles Create a base image Dockerfile reference

docker ps

references:

list without wrap

list full container id

[!NOTE|label:references:]

FILTER
DESCRIPTION

id

container's id

name

container's name

label

an arbitrary string representing either a key or a key-value pair. Expressed as <key> or <key>=<value>

exited

an integer representing the container's exit code. Only useful with --all.

status

one of created, restarting, running, removing, paused, exited, or dead

ancestor

filters containers which share a given image as an ancestor. Expressed as <image-name>[:<tag>], <image id>, or <image@digest>

before or since

filters containers created before or after a given container ID or name

volume

filters running containers which have mounted a given volume or bind mount.

network

filters running containers connected to a given network.

publish or expose

filters containers which publish or expose a given port. Expressed as <port>[/<proto>] or <startport-endport>/[<proto>]

health

filters containers based on their healthcheck status. One of starting, healthy, unhealthy or none.

isolation

windows daemon only. One of default, process, or hyperv.

is-task

filters containers that are a "task" for a service. Boolean option (true or false)

  • filter with image

  • filter with exit code

  • filter with status

  • filter with tag

docker stats

docker inspect

docker proxy

check docker layer

references:

media type

[!TIP] references:

manifest.v2+json

[!NOTE] mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'

  • docker version

  • solution

    [!TIP] One way to upgrade an image from image manifest version 2, schema 1 to schema 2 is to docker pull the image and then docker push the image with a current version of Docker. Doing so will automatically convert the image to use the latest image manifest specification. Converting an image to image manifest version 2, schema 2 converts the manifest format, but does not update the contents within the image. Images using manifest version 2, schema 1 may contain unpatched vulnerabilities. We recommend looking for an alternative image or rebuilding it.

sample json

Last updated

Was this helpful?