I am running the mobicents/restcomm image with the bellow command
docker run -d -e STATIC_ADDRESS="192.168.99.100" -e OUTBOUND_PROXY="10.10.222.85" --name=restcomm -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" -p 80:80 -p 443:443 -p 9990:9990 -p 5060:5060 -p 5061:5061 -p 5062:5062 -p 5063:5063 -p 5060:5060/udp -p 5083:5083/tcp -p 5083:5083/udp -p 65000-65100:65000-65100/udp mobicents/restcomm:latest
When I run docker logs –f <container id> , A huge logs are getting displayed. These logs are taking huge space. I tried clean the container but I am not getting it.
Could some one please check and let me know how can I clean docker container logs. Thanks in advance
docker run -i -d --name=restcomm -v /var/log/restcomm/:/var/log/restcomm/ -e STATIC_ADDRESS="YOUR_ETHERNET_IP" -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" -p 80:80 -p 443:443 -p 9990:9990 -p 5060:5060 -p 5061:5061 -p 5062:5062 -p 5063:5063 -p 5060:5060/udp -p 65000-65050:65000-65050/udp restcomm/restcomm:latest
--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks B.R.
You can pass the logs to syslog or journald and both do log rotation out of the box
Thanks B.R.I don't want to Disable the logs. I just need to clean the old logs.
--