mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
34
tldr/crane
Normal file
34
tldr/crane
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane
|
||||
|
||||
> Container images managing tool.
|
||||
> Some subcommands such as `pull`, `push`, `copy`, etc. have their own usage documentation.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md/>.
|
||||
|
||||
- Execute a `crane` subcommand:
|
||||
|
||||
`crane {{subcommand}}`
|
||||
|
||||
- Allow pushing non-distributable (foreign) layers:
|
||||
|
||||
`crane --allow-nondistributable-artifacts {{subcommand}}`
|
||||
|
||||
- Allow image references to be fetched without TLS:
|
||||
|
||||
`crane --insecure {{subcommand}}`
|
||||
|
||||
- Specify the platform in the form os/arch{{/variant}}{{:osversion}} (e.g. linux/amd64). (default all):
|
||||
|
||||
`crane --platform {{platform}} {{subcommand}}`
|
||||
|
||||
- Enable debug logs for a subcommand:
|
||||
|
||||
`crane {{-v|--verbose}} {{subcommand}}`
|
||||
|
||||
- Display help for a subcommand:
|
||||
|
||||
`crane {{-h|--help}} {{subcommand}}`
|
||||
38
tldr/crane-append
Normal file
38
tldr/crane-append
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane append
|
||||
|
||||
> Push an image based on an (optional) base image.
|
||||
> Appends layers containing the contents of the provided tarballs.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_append.md>.
|
||||
|
||||
- Push image based on a base image:
|
||||
|
||||
`crane append {{-b|--base}} {{image_name}}`
|
||||
|
||||
- Push image with appended layer from tarball:
|
||||
|
||||
`crane append {{-f|--new_layer}} {{layer_name1 layer_name2 ...}}`
|
||||
|
||||
- Push image with appended layer with new tag:
|
||||
|
||||
`crane append {{-t|--new_tag}} {{tag_name}}`
|
||||
|
||||
- Push resulting image to new tarball:
|
||||
|
||||
`crane append {{-o|--output}} {{path/to/tarball}}`
|
||||
|
||||
- Use empty base image of type OCI media instead of Docker:
|
||||
|
||||
`crane append --oci-empty-base`
|
||||
|
||||
- Annotate resulting image as being based on the base image:
|
||||
|
||||
`crane append --set-base-image-annotations`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane append {{-h|--help}}`
|
||||
33
tldr/crane-auth
Normal file
33
tldr/crane-auth
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane auth
|
||||
|
||||
> Log in or access credentials.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_auth.md>.
|
||||
|
||||
- Execute `crane auth` subcommand:
|
||||
|
||||
`crane auth {{subcommand}}`
|
||||
|
||||
- Implement credential helper:
|
||||
|
||||
`crane auth get {{registry_address}} {{-h|--help}}`
|
||||
|
||||
- Log in to a registry:
|
||||
|
||||
`crane auth login {{registry_address}} {{-h|--help}} {{-p|--password}} {{password}} {{-password-stdin}} {{-u|--username}} {{username}}`
|
||||
|
||||
- Log out of a registry:
|
||||
|
||||
`crane auth logout {{registry_address}} {{-h|--help}}`
|
||||
|
||||
- Retrieve a token for a remote repository:
|
||||
|
||||
`crane auth token {{registry_address}} {{-H|--header}} {{-h|--help}} {{-m|--mount}} {{scope1 scope2 ...}} --push`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane auth {{-h|--help}}`
|
||||
17
tldr/crane-blob
Normal file
17
tldr/crane-blob
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane blob
|
||||
|
||||
> Read a blob from a registry.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_blob.md>.
|
||||
|
||||
- Read the blob from a registry:
|
||||
|
||||
`crane blob {{blob_identifier}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane blob {{-h|--help}}`
|
||||
21
tldr/crane-catalog
Normal file
21
tldr/crane-catalog
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane catalog
|
||||
|
||||
> List the repositories in a registry.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_catalog.md>.
|
||||
|
||||
- List the repositories in a registry:
|
||||
|
||||
`crane catalog {{registry_address}}`
|
||||
|
||||
- Print the full image reference:
|
||||
|
||||
`crane catalog {{registry_address}} --full-ref`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane catalog {{-h|--help}}`
|
||||
17
tldr/crane-config
Normal file
17
tldr/crane-config
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane config
|
||||
|
||||
> Get the configuration of an image.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_config.md>.
|
||||
|
||||
- Get the configuration of an image:
|
||||
|
||||
`crane config {{image_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane config {{-h|--help}}`
|
||||
29
tldr/crane-copy
Normal file
29
tldr/crane-copy
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane copy
|
||||
|
||||
> Efficiently copy a remote image from source to target while retaining the digest value.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_copy.md>.
|
||||
|
||||
- Copy an image from source to target:
|
||||
|
||||
`crane copy {{source}} {{target}}`
|
||||
|
||||
- Copy all tags:
|
||||
|
||||
`crane copy {{source}} {{target}} {{-a|--all-tags}}`
|
||||
|
||||
- Set the maximum number of concurrent copies, defaults to GOMAXPROCS:
|
||||
|
||||
`crane copy {{source}} {{target}} {{-j|--jobs}} {{int}}`
|
||||
|
||||
- Avoid overwriting existing tags in target:
|
||||
|
||||
`crane copy {{source}} {{target}} {{-n|--no-clobber}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane copy {{-h|--help}}`
|
||||
17
tldr/crane-delete
Normal file
17
tldr/crane-delete
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane delete
|
||||
|
||||
> Delete an image reference from its registry.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_delete.md>.
|
||||
|
||||
- Delete an image reference from its registry:
|
||||
|
||||
`crane delete {{image_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane delete {{-h|--help}}`
|
||||
25
tldr/crane-digest
Normal file
25
tldr/crane-digest
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane digest
|
||||
|
||||
> Get the digest of an image.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_digest.md>.
|
||||
|
||||
- Get the digest of an image:
|
||||
|
||||
`crane digest {{image_name}}`
|
||||
|
||||
- Print the full image reference by digest:
|
||||
|
||||
`crane digest {{image_name}} --full-ref`
|
||||
|
||||
- Specify path to tarball containing the image:
|
||||
|
||||
`crane digest {{image_name}} --tarball {{path/to/tarball}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane digest {{-h|--help}}`
|
||||
21
tldr/crane-export
Normal file
21
tldr/crane-export
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane export
|
||||
|
||||
> Export filesystem of a container image as a tarball.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_digest.md>.
|
||||
|
||||
- Write tarball to stdout:
|
||||
|
||||
`crane export {{image_name}} -`
|
||||
|
||||
- Write tarball to file:
|
||||
|
||||
`crane export {{image_name}} {{path/to/tarball}}`
|
||||
|
||||
- Read image from stdin:
|
||||
|
||||
`crane export - {{path/to/filename}}`
|
||||
22
tldr/crane-flatten
Normal file
22
tldr/crane-flatten
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane flatten
|
||||
|
||||
> Flatten an image's layers into a single layer.
|
||||
> Pushes digest to original image repository if no tags are specified.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_digest.md>.
|
||||
|
||||
- Flatten an image:
|
||||
|
||||
`crane flatten`
|
||||
|
||||
- Apply new tag to flattened image:
|
||||
|
||||
`crane flatten {{-t|--tag}} {{tag_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane flatten {{-h|--help}}`
|
||||
22
tldr/crane-index
Normal file
22
tldr/crane-index
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane index
|
||||
|
||||
> Modify an image index.
|
||||
> The subcommands `append` and `filter` have their own usage documentation.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_index.md>.
|
||||
|
||||
- Modify an image index:
|
||||
|
||||
`crane index`
|
||||
|
||||
- Modify an image index with subcommand:
|
||||
|
||||
`crane index {{subcommand}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane index {{-h|--help}}`
|
||||
35
tldr/crane-index-append
Normal file
35
tldr/crane-index-append
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane index append
|
||||
|
||||
> Append manifest to a remote index.
|
||||
> This sub-command pushes an index based on an (optional) base index, with appended manifests.
|
||||
> The platform for appended manifests is inferred from the config file or omitted if that is infeasible.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_index_append.md>.
|
||||
|
||||
- Append manifest to a remote index:
|
||||
|
||||
`crane index append`
|
||||
|
||||
- Reference to manifests to append to the base index:
|
||||
|
||||
`crane index append {{-m|--manifest}} {{manifest_name1 manifest_name2 ...}}`
|
||||
|
||||
- Tag to apply to resulting image:
|
||||
|
||||
`crane index append {{-t|--tag}} {{tag_name}}`
|
||||
|
||||
- Empty base index will have Docker media types instead of OCI:
|
||||
|
||||
`crane index append --docker-empty-base`
|
||||
|
||||
- Append each of its children rather than the index itself (defaults true):
|
||||
|
||||
`crane index append --flatten`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane index append {{-h|--help}}`
|
||||
25
tldr/crane-index-filter
Normal file
25
tldr/crane-index-filter
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane index filter
|
||||
|
||||
> Modifies a remote index by filtering based on platform.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_index_filter.md>.
|
||||
|
||||
- Modify remote index:
|
||||
|
||||
`crane index filter`
|
||||
|
||||
- Specify the platform(s) to keep from base in the form os/arch{{/variant}}{{:osversion}}{{,<platform>}}:
|
||||
|
||||
`crane index filter --platform {{platform1 platform2 ...}}`
|
||||
|
||||
- Tag to apply to resulting image:
|
||||
|
||||
`crane index filter {{-t|--tags}} {{tag_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane index filter {{-h|--help}}`
|
||||
25
tldr/crane-ls
Normal file
25
tldr/crane-ls
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane ls
|
||||
|
||||
> List the tags in a repository.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_ls.md>.
|
||||
|
||||
- List the tags:
|
||||
|
||||
`crane ls {{repository}}`
|
||||
|
||||
- Print the full image reference:
|
||||
|
||||
`crane ls {{repository}} --full-ref`
|
||||
|
||||
- Omit digest tags:
|
||||
|
||||
`crane ls {{-o|--omit-digest-tags}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane ls {{-h|--help}}`
|
||||
17
tldr/crane-manifest
Normal file
17
tldr/crane-manifest
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane manifest
|
||||
|
||||
> Get the manifest of an image.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_manifest.md>.
|
||||
|
||||
- Get the manifest:
|
||||
|
||||
`crane manifest {{image_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane manifest {{-h|--help}}`
|
||||
42
tldr/crane-mutate
Normal file
42
tldr/crane-mutate
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane mutate
|
||||
|
||||
> Modify image labels and annotations.
|
||||
> The container must be pushed to a registry, and the manifest is updated there.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_mutate.md>.
|
||||
|
||||
- New annotations to set (default []):
|
||||
|
||||
`crane mutate {{-a|--annotation}}/{{-l|--label}} {{annotation/label}}`
|
||||
|
||||
- Path to tarball/command/entrypoint/environment variable/exposed-ports to append to image:
|
||||
|
||||
`crane mutate {{--append}}/{{--cmd}}/{{--entrypoint}}/{{-e|--env}}/{{--exposed-ports}} {{var1 var2 ...}}`
|
||||
|
||||
- Path to new tarball of resulting image:
|
||||
|
||||
`crane mutate {{-o|--output}} {{path/to/tarball}}`
|
||||
|
||||
- Repository in the form os/arch{{/variant}}{{:osversion}}{{,<platform>}} to push mutated image:
|
||||
|
||||
`crane mutate --set-platform {{platform_name}}`
|
||||
|
||||
- New tag reference to apply to mutated image:
|
||||
|
||||
`crane mutate {{-t|--tag}} {{tag_name}}`
|
||||
|
||||
- New user to set:
|
||||
|
||||
`crane mutate {{-u|--user}} {{username}}`
|
||||
|
||||
- New working dir to set:
|
||||
|
||||
`crane mutate {{-w|--workdir}} {{path/to/workdir}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane mutate {{-h|--help}}`
|
||||
29
tldr/crane-pull
Normal file
29
tldr/crane-pull
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane pull
|
||||
|
||||
> Pull remote images by reference and store their contents locally.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_pull.md>.
|
||||
|
||||
- Pull remote image:
|
||||
|
||||
`crane pull {{image_name}} {{path/to/tarball}}`
|
||||
|
||||
- Preserve image reference used to pull as an annotation when used with --format=oci:
|
||||
|
||||
`crane pull {{image_name}} {{path/to/tarball}} --annotate-ref`
|
||||
|
||||
- Path to cache image layers:
|
||||
|
||||
`crane pull {{image_name}} {{path/to/tarball}} {{-c|--cache_path}} {{path/to/cache}}`
|
||||
|
||||
- Format in which to save images (default 'tarball'):
|
||||
|
||||
`crane pull {{image_name}} {{path/to/tarball}} {{-format}} {{format_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane pull {{-h|--help}}`
|
||||
25
tldr/crane-push
Normal file
25
tldr/crane-push
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane push
|
||||
|
||||
> Push local image contents to a remote registry.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_push.md>.
|
||||
|
||||
- Push local image to remote registry:
|
||||
|
||||
`crane push {{path/to/tarball}} {{image_name}}`
|
||||
|
||||
- Path to file with list of published image references:
|
||||
|
||||
`crane push {{path/to/tarball}} {{image_name}} --image-refs {{path/to/filename}}`
|
||||
|
||||
- Push a collection of images as a single index (required if path has multiple images):
|
||||
|
||||
`crane push {{path/to/tarball}} {{image_name}} --index`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane push {{-h|--help}}`
|
||||
29
tldr/crane-rebase
Normal file
29
tldr/crane-rebase
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane rebase
|
||||
|
||||
> Rebase an image onto a new base image.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_rebase.md>.
|
||||
|
||||
- Rebase image:
|
||||
|
||||
`crane rebase`
|
||||
|
||||
- New base image to insert:
|
||||
|
||||
`crane rebase --new_base {{image_name}}`
|
||||
|
||||
- Old base image to remove:
|
||||
|
||||
`crane rebase --old_base {{image_name}}`
|
||||
|
||||
- Tag to apply to rebased image:
|
||||
|
||||
`crane rebase {{-t|--tag}} {{tag_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane rebase {{-h|--help}}`
|
||||
30
tldr/crane-registry
Normal file
30
tldr/crane-registry
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane registry
|
||||
|
||||
> This command serves a registry implementation on an automatically chosen port (:0), $PORT or --address.
|
||||
> The command blocks while the server accepts pushes and pulls and contents are can be stored in memory, and disk.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_registry_serve.md>.
|
||||
|
||||
- Serve a registry implementation:
|
||||
|
||||
`crane registry serve`
|
||||
|
||||
- Address to listen on:
|
||||
|
||||
`crane registry serve --address {{address_name}}`
|
||||
|
||||
- Path to a directory where blobs will be stored:
|
||||
|
||||
`crane registry serve --disk {{path/to/store_dir}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane registry {{-h|--help}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane registry serve {{-h|--help}}`
|
||||
18
tldr/crane-tag
Normal file
18
tldr/crane-tag
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane tag
|
||||
|
||||
> Efficiently tag a remote image without downloading it, which differs from the `copy` command.
|
||||
> It skips the layer existence checks because we know the manifest already exists making it slightly faster.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_tag.md>.
|
||||
|
||||
- Tag remote image:
|
||||
|
||||
`crane tag {{image_name}} {{tag_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane tag {{-h|--help}}`
|
||||
29
tldr/crane-validate
Normal file
29
tldr/crane-validate
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane validate
|
||||
|
||||
> Validate that an image is well-formed.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_validate.md>.
|
||||
|
||||
- Validate an image:
|
||||
|
||||
`crane validate`
|
||||
|
||||
- Skip downloading/digesting layers:
|
||||
|
||||
`crane validate --fast`
|
||||
|
||||
- Name of remote image to validate:
|
||||
|
||||
`crane validate --remote {{image_name}}`
|
||||
|
||||
- Path to tarball to validate:
|
||||
|
||||
`crane validate --tarball {{path/to/tarball}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane validate {{-h|--help}}`
|
||||
18
tldr/crane-version
Normal file
18
tldr/crane-version
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# crane version
|
||||
|
||||
> Print the version of a binary.
|
||||
> The version string is completely dependent on how the binary was built, so you should not depend on the version format. It may change without notice.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_version.md>.
|
||||
|
||||
- Display version:
|
||||
|
||||
`crane version`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane version {{-h|--help}}`
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Open files in an existing Emacs server.
|
||||
> See also `emacs`.
|
||||
> More information: <https://www.emacswiki.org/emacs/EmacsClient>.
|
||||
> More information: <https://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html>.
|
||||
|
||||
- Open a file in an existing Emacs server (using GUI if available):
|
||||
|
||||
|
||||
17
tldr/enable
Normal file
17
tldr/enable
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# enable
|
||||
|
||||
> Enable and disable shell builtins.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-enable>.
|
||||
|
||||
- Print the list of builtins:
|
||||
|
||||
`enable`
|
||||
|
||||
- Disable a builtin (works in `bash` only):
|
||||
|
||||
`enable -n {{command}}`
|
||||
12
tldr/fping
12
tldr/fping
@@ -8,14 +8,18 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> A more powerful ping which can ping multiple hosts.
|
||||
> More information: <https://fping.org>.
|
||||
|
||||
- List the status of all hosts within a range:
|
||||
|
||||
`fping {{192.168.1.{1..254}}}`
|
||||
|
||||
- List alive hosts within a subnet generated from a netmask:
|
||||
|
||||
`fping {{-a|--alive}} {{-g|--generate}} 192.168.1.0/24`
|
||||
`fping {{-a|--alive}} {{-g|--generate}} {{192.168.1.0/24}}`
|
||||
|
||||
- List alive hosts within a subnet generated from an IP range:
|
||||
- List alive hosts within a subnet generated from an IP range and prune per-probe results:
|
||||
|
||||
`fping {{-a|--alive}} {{-g|--generate}} 192.168.1.1 192.168.1.254`
|
||||
`fping {{-q|--quiet}} {{-a|--alive}} {{-g|--generate}} {{192.168.1.1}} {{192.168.1.254}}`
|
||||
|
||||
- List unreachable hosts within a subnet generated from a netmask:
|
||||
|
||||
`fping {{-u|--unreach}} {{-g|--generate}} 192.168.1.0/24`
|
||||
`fping {{-u|--unreach}} {{-g|--generate}} {{192.168.1.0/24}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gatsby
|
||||
|
||||
> Static site generator for React.
|
||||
> More information: <https://gatsbyjs.org>.
|
||||
> More information: <https://gatsbyjs.com>.
|
||||
|
||||
- Create a new site:
|
||||
|
||||
|
||||
36
tldr/gcrane
Normal file
36
tldr/gcrane
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane
|
||||
|
||||
> Container images managing tool.
|
||||
> This tool implements a superset of the `crane` commands, with additional commands that are specific to `gcr.io`.
|
||||
> Some subcommands such as `append`, `auth`, `copy`, etc. have their own usage documentation which can be found under `crane`.
|
||||
> Some subcommands such as `completion`, `gc`, `help` are specific to gcrane and have their own usage documentation.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- Execute a `gcrane` subcommand:
|
||||
|
||||
`gcrane {{subcommand}}`
|
||||
|
||||
- Allow pushing non-distributable (foreign) layers:
|
||||
|
||||
`gcrane --allow-nondistributable-artifacts {{subcommand}}`
|
||||
|
||||
- Allow image references to be fetched without TLS:
|
||||
|
||||
`gcrane --insecure {{subcommand}}`
|
||||
|
||||
- Specify the platform in the form os/arch{{/variant}}{{:osversion}} (e.g. linux/amd64). (default all):
|
||||
|
||||
`gcrane --platform {{platform}} {{subcommand}}`
|
||||
|
||||
- Enable debug logs:
|
||||
|
||||
`gcrane {{-v|--verbose} {{subcommand}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane {{-h|--help}}`
|
||||
25
tldr/gcrane-copy
Normal file
25
tldr/gcrane-copy
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane copy
|
||||
|
||||
> Efficiently copy a remote image from source to target while retaining the digest value.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- Copy an image from source to target:
|
||||
|
||||
`gcrane {{cp|copy}} {{source}} {{target}}`
|
||||
|
||||
- Set the maximum number of concurrent copies, defaults to 20:
|
||||
|
||||
`gcrane copy {{source}} {{target}} {{-j|--jobs}} {{nr_of_copies}}`
|
||||
|
||||
- Whether to recurse through repositories:
|
||||
|
||||
`grance copy {{source}} {{target}} {{-r|--recursive}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane copy {{-h|--help}}`
|
||||
23
tldr/gcrane-gc
Normal file
23
tldr/gcrane-gc
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane gc
|
||||
|
||||
> List images that are not tagged.
|
||||
> Will calculate images that can be garbage-collected.
|
||||
> This can be composed with `gcrane delete` to actually garbage collect them.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- List untagged images:
|
||||
|
||||
`gcrane gc {{repository}}`
|
||||
|
||||
- Whether to recurse through repositories:
|
||||
|
||||
`gcrane gc {{repository}} {{-r|--recursive}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane gc {{-h|--help}}`
|
||||
17
tldr/gcrane-help
Normal file
17
tldr/gcrane-help
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane help
|
||||
|
||||
> Help provides help for any command in the application.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- Display help for a subcommand:
|
||||
|
||||
`gcrane help {{command}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`grance help {{-h|--help}}`
|
||||
26
tldr/gcrane-ls
Normal file
26
tldr/gcrane-ls
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane ls
|
||||
|
||||
> List the tags in a repository.
|
||||
> More complex form than `crane ls`, which allows for listing tags, manifest and sub-repositories.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- List the tags:
|
||||
|
||||
`gcrane ls {{repository}}`
|
||||
|
||||
- Format response from the registry as JSON:
|
||||
|
||||
`gcrane ls {{repository}} --json`
|
||||
|
||||
- Whether to recurse through repositories:
|
||||
|
||||
`gcrane ls {{repository}} {{-r|--recursive}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane ls {{-h|--help}}`
|
||||
@@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Gentoo's multi-purpose configuration and management tool.
|
||||
> It consists of various modules that take care of individual administrative tasks.
|
||||
> Some subcommands such as `kernel`, `locale`, `profile`, etc. have their own usage documentation.
|
||||
> More information: <https://wiki.gentoo.org/wiki/Eselect>.
|
||||
|
||||
- Display a list of installed modules:
|
||||
|
||||
25
tldr/linux/eselect-kernel
Normal file
25
tldr/linux/eselect-kernel
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# eselect kernel
|
||||
|
||||
> An `eselect` module for managing the `/usr/src/linux` symlink.
|
||||
> More information: <https://wiki.gentoo.org/wiki/Eselect#Kernel>.
|
||||
|
||||
- List available kernel symlink targets with their numbers:
|
||||
|
||||
`eselect kernel list`
|
||||
|
||||
- Set the `/usr/src/linux` symlink by name or number from the `list` command:
|
||||
|
||||
`eselect kernel set {{name|number}}`
|
||||
|
||||
- Show what the current kernel symlink points to:
|
||||
|
||||
`eselect kernel show`
|
||||
|
||||
- Set the kernel symlink to the currently running kernel:
|
||||
|
||||
`eselect kernel update`
|
||||
21
tldr/linux/eselect-profile
Normal file
21
tldr/linux/eselect-profile
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# eselect profile
|
||||
|
||||
> An `eselect` module for managing the `/etc/portage/make.profile` symlink, which sets the system profile.
|
||||
> More information: <https://wiki.gentoo.org/wiki/Eselect#Profile>.
|
||||
|
||||
- List available profile symlink targets with their numbers:
|
||||
|
||||
`eselect profile list`
|
||||
|
||||
- Set the `/etc/portage/make.profile` symlink by name or number from the `list` command:
|
||||
|
||||
`eselect profile set {{name|number}}`
|
||||
|
||||
- Show the current system profile:
|
||||
|
||||
`eselect profile show`
|
||||
42
tldr/linux/gcrane-completion
Normal file
42
tldr/linux/gcrane-completion
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane completion
|
||||
|
||||
> Generate the autocompletion script for gcrane for the specified shell.
|
||||
> The available shells are `bash`, `fish`, `powershell`, and `zsh`.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- Generate the autocompletion script for your shell:
|
||||
|
||||
`gcrane completion {{shell_name}}`
|
||||
|
||||
- Disable completion descriptions:
|
||||
|
||||
`grance completion {{shell_name}} --no-descriptions`
|
||||
|
||||
- Load completions in your current shell session (bash/zsh):
|
||||
|
||||
`source <(gcrane completion bash/zsh)>`
|
||||
|
||||
- Load completions in your current shell session (fish):
|
||||
|
||||
`gcrane completion fish | source`
|
||||
|
||||
- Load completions for every new session (bash):
|
||||
|
||||
`gcrane completion bash > /etc/bash_completion.d/gcrane`
|
||||
|
||||
- Load completions for every new session (zsh):
|
||||
|
||||
`gcrane completion zsh > "${fpath[1]}/_gcrane"`
|
||||
|
||||
- Load completions for every new session (fish):
|
||||
|
||||
`gcrane completion fish > ~/.config/fish/completions/gcrane.fish`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane completion {{shell_name}} {{-h|--help}}`
|
||||
2
tldr/man
2
tldr/man
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# man
|
||||
|
||||
> Format and display manual pages.
|
||||
> More information: <https://www.manned.org/man>.
|
||||
> More information: <https://manned.org/man>.
|
||||
|
||||
- Display the man page for a command:
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`nping --interface {{eth0}} {{example.com}}`
|
||||
|
||||
- Set the Reserved/Evil bit in sent packets:
|
||||
- Ping an IP range:
|
||||
|
||||
`nping --evil {{example.com}}`
|
||||
`nping {{10.0.0.1-10}}`
|
||||
|
||||
@@ -28,9 +28,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ollama pull {{model}}`
|
||||
|
||||
- Upgrade Ollama on Linux:
|
||||
- List running models:
|
||||
|
||||
`curl -fsSL https://ollama.com/install.sh | sh`
|
||||
`ollama ps`
|
||||
|
||||
- Delete a model:
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cal`
|
||||
|
||||
- Display previous, current and next month:
|
||||
- Display previous, current, and next month:
|
||||
|
||||
`cal -3`
|
||||
|
||||
|
||||
42
tldr/osx/gcrane-completion
Normal file
42
tldr/osx/gcrane-completion
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, osx]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane completion
|
||||
|
||||
> Generate the autocompletion script for gcrane for the specified shell.
|
||||
> The available shells are `bash`, `fish`, `powershell`, and `zsh`.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- Generate the autocompletion script for your shell:
|
||||
|
||||
`gcrane completion {{shell_name}}`
|
||||
|
||||
- Disable completion descriptions:
|
||||
|
||||
`grance completion {{shell_name}} --no-descriptions`
|
||||
|
||||
- Load completions in your current shell session (bash/zsh):
|
||||
|
||||
`source <(gcrane completion bash/zsh)>`
|
||||
|
||||
- Load completions in your current shell session (fish):
|
||||
|
||||
`gcrane completion fish | source`
|
||||
|
||||
- Load completions for every new session (bash):
|
||||
|
||||
`gcrane completion bash > $(brew --prefix)/etc/bash_completion.d/gcrane`
|
||||
|
||||
- Load completions for every new session (zsh):
|
||||
|
||||
`gcrane completion zsh > $(brew --prefix)/share/zsh/site-functions/_gcrane`
|
||||
|
||||
- Load completions for every new session (fish):
|
||||
|
||||
`gcrane completion fish > ~/.config/fish/completions/gcrane.fish`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane completion {{shell_name}} {{-h|--help}}`
|
||||
@@ -21,22 +21,22 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`comp {{path o\directory1}}\* {{path o\directory2}}\*`
|
||||
|
||||
- Display differences in decimal format:
|
||||
- Display differences in [d]ecimal format:
|
||||
|
||||
`comp /d {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Display differences in ASCII format:
|
||||
- Display differences in [a]SCII format:
|
||||
|
||||
`comp /a {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Display line numbers for differences:
|
||||
- Display [l]ine numbers for differences:
|
||||
|
||||
`comp /l {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Compare files case-insensitively:
|
||||
- Compare files [c]ase-insensitively:
|
||||
|
||||
`comp /c {{path oile1}} {{path oile2}}`
|
||||
|
||||
- Compare only the first 5 lines of each file:
|
||||
|
||||
`comp /n={{5}} {{path oile1}} {{path oile2}}`
|
||||
`comp /n=5 {{path oile1}} {{path oile2}}`
|
||||
|
||||
30
tldr/windows/gcrane-completion
Normal file
30
tldr/windows/gcrane-completion
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gcrane completion
|
||||
|
||||
> Generate the autocompletion script for gcrane for the specified shell.
|
||||
> The available shells are `bash`, `fish`, `powershell`, and `zsh`.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/gcrane/README.md>.
|
||||
|
||||
- Generate the autocompletion script for your shell:
|
||||
|
||||
`gcrane completion {{shell_name}}`
|
||||
|
||||
- Disable completion descriptions:
|
||||
|
||||
`grance completion {{shell_name}} --no-descriptions`
|
||||
|
||||
- Load completions in your current shell session (powershell):
|
||||
|
||||
`gcrane completion powershell | Out-String | Invoke-Expression`
|
||||
|
||||
- Load completions for every new session (powershell):
|
||||
|
||||
`Add above command to powershell profile`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane completion {{shell_name}} {{-h|--help}}`
|
||||
@@ -16,10 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tree {{path o\directory}}`
|
||||
|
||||
- Display the tree for a directory including files:
|
||||
- Display the tree for a directory including [f]iles:
|
||||
|
||||
`tree {{path o\directory}} /f`
|
||||
|
||||
- Display the tree using ASCII characters instead of extended characters:
|
||||
- Display the tree using [a]SCII characters instead of extended characters:
|
||||
|
||||
`tree {{path o\directory}} /a`
|
||||
|
||||
Reference in New Issue
Block a user