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 :: how to check cpu temperature ubuntu 
Shell :: pip install postgresql 
Shell :: install xelatex ubuntu 
Shell :: virtualbox kernel driver not installed arch linux 
Shell :: how to remove all commit in git 
Shell :: failed to start docker application container engine 
Shell :: list interfaces centos 
Shell :: django knox install 
Shell :: conda install pytorch lightning 
Shell :: brave browser linux 
Shell :: git merge cancel 
Shell :: kubectl connect eks 
Shell :: macbook ubuntu webcam 
Shell :: git@bitbucket.org: Permission denied (publickey). 
Shell :: ubuntu bleachbit install 
Shell :: timezone brasil postgresql 
Shell :: subtract first time step paraview 
Shell :: change wp permission ubuntu 
Shell :: find files edited within last minute 
Shell :: conda create enviroment from file 
Shell :: show directory size linux 
Shell :: install GTK 3.0 on fedora 
Shell :: Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: xml 
Shell :: git delete last commit local and remote 
Shell :: yarn download windows 
Shell :: count files in a directory 
Shell :: delete distro 
Shell :: install composer mac 
Shell :: push project to github 
Shell :: ubuntu delete from ssh known hosts 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =