-bash: Unable to create a temporary file for the document immediately: No space left on device --- remember once being given

The cause of failure

Test environment before using the machine did docker-compose, then there is need to use docker environment on that machine, you need to delete all the old docker container, is due to start before the start of the use of docker-compose, normal means should be used the tool is turned off container. But I use the docker rm --force command, the system may not know what crazy does not it

The following is a phenomenon

[root@localhost ~]# ls -bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间
-bash: 无法为立即文档创建临时文件: 设备上没有空间

tab completion feature can not be used, but also seriously affect system operation, the background has been eating resources

[root@localhost tmp]# df -Th
文件系统                类型      容量  已用  可用 已用% 挂载点
/dev/mapper/centos-root xfs        17G   17G   20K  100% /
   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                       
  2077 root      20   0  634100  12116   1848 S   0.7  1.2  10:36.46 containerd  

The process is, I kill pkill docker service, the process is still

Last solution:

[root@localhost tmp]# ps aux | grep containerd
root       2077  0.7  1.2 634100 12116 ?        Ssl  6月24  10:37 /usr/bin/containerd
root      83649  0.0  5.2 536180 51924 ?        Ssl  21:35   0:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root      84095  0.0  0.0 112720   988 pts/1    S+   21:56   0:00 grep --color=auto containerd
[root@localhost tmp]# pkill -9 containerd
[root@localhost tmp]# ps aux | grep containerd
root      84110  0.0  0.0 112720   988 pts/1    S+   21:56   0:00 grep --color=auto containerd
[root@localhost tmp]# df -Th
文件系统                类型      容量  已用  可用 已用% 挂载点
/dev/mapper/centos-root xfs        17G   17G   20K  100% /

top 命令已经看不到该进程的存在了,但是磁盘还是满的

#网上查了一下,意思就是生成了许多临时文件在/tmp目录下

#由于是测试环境,我直接将整个目录清空了

[root@localhost tmp]# rm -rf /tmp/*
[root@localhost tmp]# ls .
./          ../         .font-unix/ .ICE-unix/  .Test-unix/ .X11-unix/  .XIM-unix/ 

#补全功能也可以正常使用了

to sum up

  • Basics relatively not strong enough, such as the use of docker-compose tools, and systems and services with the run-time

Guess you like

Origin www.cnblogs.com/joinbestgo/p/11086991.html