Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.01 KB | None | 0 0
  1. $ make prune
  2. echo y | docker builder prune
  3. WARNING! This will remove all dangling build cache. Are you sure you want to continue? [y/N] Deleted build cache objects:
  4. yevcn99uzpzobqpwb9c2kytlf
  5. ml49k9v03se6h1kfglxlngb2p
  6. ujqp8c63zdktird1nupw14ycz
  7.  
  8. Total reclaimed space: 466B
  9. echo y | docker system prune -a
  10. WARNING! This will remove:
  11.   - all stopped containers
  12.   - all networks not used by at least one container
  13.   - all images without at least one container associated to them
  14.   - all build cache
  15.  
  16. Are you sure you want to continue? [y/N] Deleted Images:
  17. untagged: my-local-image:latest
  18. deleted: sha256:6ad4834bacba99614b982621f01eb8cdc223698ece0f1085fdd1a717d5483d10
  19.  
  20. Deleted build cache objects:
  21. nwba07q3vqrgditoguqtn2cyd
  22. 3vwuy4powdcftmuh8y1aysdsz
  23. ksafo5di7f0u6iyeepd9tm4qo
  24. sha256:352254462a2e1a7559a7f8f21c221289dcf906671aa26ef91010972e55518ed6
  25. sha256:3182844e2045e398110f08271320370c1ec3f02bfe25394a82c00f3d14ae6837
  26. sha256:1eba362754285a34ffed3c6e5a5f4f98214669be05b47f34100e37b35e523431
  27. sha256:dfab44e6bae0c3d7c34d1c677f5cc91b77cbc9e057c409b7bec88a65eb7aa3af
  28. sha256:f1b5933fe4b5f49bbe8258745cf396afe07e625bdab3168e364daf7c956b6b81
  29.  
  30. Total reclaimed space: 80.93MB
  31.  
  32. ------------------------------------------------------------------------
  33.  
  34. $ make build
  35. docker buildx build -t my-local-image -f Dockerfile --cache-from=type=registry,ref=registry.my.dev/m.kindritskiy/docker-cache:latest --load .
  36. [+] Building 22.9s (11/11) FINISHED                                                                                                                                                                                
  37.  => importing cache manifest from registry.my.dev/m.kindritskiy/docker-cache:latest                                                                                                                          0.3s
  38.  => [internal] load .dockerignore                                                                                                                                                                             0.1s
  39.  => => transferring context: 2B                                                                                                                                                                               0.0s
  40.  => [internal] load build definition from Dockerfile                                                                                                                                                          0.1s
  41.  => => transferring dockerfile: 127B                                                                                                                                                                          0.0s
  42.  => [internal] load metadata for docker.io/library/node:12-alpine                                                                                                                                             0.8s
  43.  => [1/5] FROM docker.io/library/node:12-alpine@sha256:50ce309a948aaad30ee876fb07ccf35b62833b27de4d3a818295982efb04ce6b                                                                                       0.0s
  44.  => [internal] load build context                                                                                                                                                                             0.0s
  45.  => => transferring context: 462B                                                                                                                                                                             0.0s
  46.  => CACHED [2/5] WORKDIR /app                                                                                                                                                                                17.4s
  47.  => => pulling sha256:e7c96db7181be991f19a9fb6975cdbbd73c65f4a2681348e63a141a2192a5f10                                                                                                                       15.4s
  48.  => => pulling sha256:fd38342e03373b2ef6a3c7f354adf8d165454628b1de8c8329e70b3ef6325710                                                                                                                       12.4s
  49.  => => pulling sha256:7b373bfb6ac5ffc0602bd1033666f9138fc137d68f67c4d4726cd6ac0c6bc9ac                                                                                                                       14.7s
  50.  => => pulling sha256:5269cc77d334b68485968973d8e40df41f5d712a0cc66580bf9d925e5da6b923                                                                                                                        0.1s
  51.  => => pulling sha256:06fe58f073cda3378a26c70b65edcd0b726eb7b4ade9a329a36af315c8473f99                                                                                                                        0.1s
  52.  => [3/5] COPY package.json .                                                                                                                                                                                 1.2s
  53.  => [4/5] COPY requirements.txt .                                                                                                                                                                             0.2s
  54.  => [5/5] RUN npm i                                                                                                                                                                                           3.0s
  55.  => exporting to image                                                                                                                                                                                        0.1s
  56.  => => exporting layers                                                                                                                                                                                       0.1s
  57.  => => writing image sha256:c1587b7454dcfba6b11d38c22a3694eee9386f993e57dc164ed6b3442adb459f                                                                                                                  0.0s
  58.  => => naming to docker.io/library/my-local-image
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement