No space left on device

Hi folks,
I'm using elasticsearch docker image but unable to run it on my Mac. It used to be fine.

$ docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.9.1
Exception in thread "main" java.nio.file.FileSystemException: /tmp/elasticsearch-9704398455498630996: No space left on device
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389)
at java.base/java.nio.file.Files.createDirectory(Files.java:694)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
at java.base/java.nio.file.Files.createTempDirectory(Files.java:1011)
at org.elasticsearch.tools.launchers.Launchers.createTempDirectory(Launchers.java:66)
at org.elasticsearch.tools.launchers.TempDirectory.main(TempDirectory.java:54)

I do see that I have space on my disk. Can someone please help?

I solved the problem by cleaning up dangling volumes. I referred to this thread on stackoverflow:

https://stackoverflow.com/questions/30604846/docker-error-no-space-left-on-device#:~:text=Check%20that%20you%20have%20free,var%2Flib%2Fdocker).&text=If%20you%20edit%20%2Fetc%2Fdefault,the%20change%20to%20take%20effect.

Good to know...I was also going to suggest checking the resources settings

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.