Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker clear container logs

sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log"
Comment

docker clean logs

truncate -s 0 /var/lib/docker/containers/*/*-json.log;
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 :: fetch all tags git 
Shell :: powershell execution policy bypass 
Shell :: powershell install oh-my-posh 
Shell :: uninstall django 
Shell :: how to install mypy 
Shell :: git submodule update authentication 
Shell :: usb sound card not working ubuntu 
Shell :: wondershaper 
Shell :: git revert commit 
Shell :: install bunjs 
Shell :: create folder shortcut on desktop ubuntu 
Shell :: How to remove files from new gitignore file 
Shell :: push git to github 
Shell :: cdo mean of multiple files 
Shell :: extract file extension bash 
Shell :: how to tar linux 
Shell :: git compare branch to another branch changes 
Shell :: hosting spa on github pages 
Shell :: docker access denied 
Shell :: alpine sudo not found 
Shell :: git remote origin edit 
Shell :: remove all docker containers 
Shell :: git push heroku master 
Shell :: sleep command bash 
Shell :: config git ftp 
Shell :: centos show hdd 
Shell :: npm ignore scripts 
Shell :: yarn 2 outdated packages 
Shell :: flutter doctor - CocoaPods installed but not working 
Shell :: installing pipewire 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =