1skopeo-delete(1)() skopeo-delete(1)()
2
3
4
6 skopeo-delete - Mark the image-name for later deletion by the reg‐
7 istry's garbage collector.
8
9
11 skopeo delete image-name
12
13
14 Mark image-name for deletion. To release the allocated disk space, you
15 must login to the container registry server and execute the container
16 registry garbage collector. E.g.,
17
18
19 /usr/bin/registry garbage-collect /etc/docker-distribution/registry/config.yml
20
21 Note: sometimes the config.yml is stored in /etc/docker/registry/config.yml
22
23 If you are running the container registry inside of a container you would execute something like:
24
25 $ docker exec -it registry /usr/bin/registry garbage-collect /etc/docker-distribution/registry/config.yml
26
27
28
29
30 --authfile path
31
32
33 Path of the authentication file. Default is ${XDG_RUNTIME_DIR}/contain‐
34 ers/auth.json, which is set using skopeo login.
35 If the authorization state is not found there, $HOME/.docker/con‐
36 fig.json is checked, which is set using docker login.
37
38
39 --creds username[:password] for accessing the registry.
40
41
42 --cert-dir path Use certificates at path (*.crt, *.cert, *.key) to con‐
43 nect to the registry.
44
45
46 --tls-verify bool-value Require HTTPS and verify certificates when
47 talking to container registries (defaults to true).
48
49
50 --no-creds bool-value Access the registry anonymously.
51
52
53 Additionally, the registry must allow deletions by setting REG‐
54 ISTRY_STORAGE_DELETE_ENABLED=true for the registry daemon.
55
56
57 --registry-token Bearer token for accessing the registry.
58
59
61 Mark image example/pause for deletion from the registry.example.com
62 registry:
63
64
65 $ skopeo delete --force docker://registry.example.com/example/pause:latest
66
67
68
69 See above for additional details on using the command delete.
70
71
73 skopeo(1), skopeo-login(1), docker-login(1), containers-auth.json(5)
74
75
77 Antonio Murdaca runcom@redhat.com ⟨mailto:runcom@redhat.com⟩, Miloslav
78 Trmac mitr@redhat.com ⟨mailto:mitr@redhat.com⟩, Jhon Honce jhonce@red‐
79 hat.com ⟨mailto:jhonce@redhat.com⟩
80
81
82
83 skopeo-delete(1)()