Skip to content

Commit 6d5531e

Browse files
04.12 update lesson-6.md
Clear the Cache and Cache path
1 parent fe9215b commit 6d5531e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Course/lesson-6.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@
4343
* `cache_dir = "/cache"` - add same location to cache as volume directory
4444
* `:wq` - Save the file
4545

46+
### Clear the Cache:
47+
* Manually with button "Clear runner caches"
48+
* The old cache is not deleted
49+
* Cache name will be updated and used instead
50+
* Have to delete manually files from the Runner storage
51+
* Format "cache-index", index is incremented by one
52+
* Change the value for the cache key in yml file
53+
54+
* `$ docker volume ls` - reference to the physical location on this machine where cache is stored
55+
* `$ runner-ieinwck3-project-40450508-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70` - the location "/var/lib/docker/volumes/runner-ieinwck3-project-40450508-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70/_data"
56+
* `sudo ls /var/lib/docker/volumes/runner-ieinwck3-project-40450508-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70/_data/JavaScriptonit/mynodeapp-cicd-project` - path of the cache
57+
* [Where the caches are stored](https://docs.gitlab.com/ee/ci/caching/) - for Shell, Docker and Docker Machine
58+
*

0 commit comments

Comments
 (0)