Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker remove logs

echo "" > $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
Comment

delete docker logs linux

find /var/lib/docker/containers/ -type f -name "*.log" -delete
Comment

docker clear logs

choose your style
 >  /var/lib/docker/containers/*/*-json.log
 cat /dev/null > /var/lib/docker/containers/*/*-json.log
 echo "" > /var/lib/docker/containers/*/*-json.log
Comment

PREVIOUS NEXT
Code Example
Shell :: No matching distribution found for PyJWT==2.0.1 
Shell :: bash if then else one line 
Shell :: git push force 
Shell :: download vlc for ubuntu 
Shell :: install specific kubectl version 
Shell :: file search linux by text 
Shell :: install ghostscript 
Shell :: pypdf2 
Shell :: how to check running services in linux 
Shell :: docker switch to linux containers command line 
Shell :: Unable to connect to libvirt qemu:///system. 
Shell :: sudo amazon-linux-extras install 
Shell :: remove notebook kernel 
Shell :: babel core 
Shell :: git abort merge 
Shell :: ionic capacitor ios live reload 
Shell :: how to get list of files in zip linux 
Shell :: Clone a specific repository 
Shell :: how use nvm with zsh 
Shell :: install classnames 
Shell :: extract numners from string linux 
Shell :: delete local branches not on remote 
Shell :: how to list all gnome extensions 
Shell :: npm port already in use 
Shell :: rerun supervisor 
Shell :: date format in linux shell script 
Shell :: Kernel driver not installed (rc=-1908) Make sure the kernel module has been loaded successfully. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 
Shell :: count files linux 
Shell :: wsl unregister 
Shell :: how to save iptables 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =