Use trickle
sudo yum install trickle
trickle -d <kB/s for download> -u <kB/s for upload> bash
Use trickle
sudo yum install trickle
trickle -d <kB/s for download> -u <kB/s for upload> bash
pkgmgr /iu:"TelnetClient"
First, get the list of packages to be removed:
rpm -qa –qf=”%{n}-%{v}-%{r}.%{arch}n” ‘mongo*’ | sort
Then use yum remove
sudo yum remove <package names>
docker run image /bin/bash -c “cd /path/to/somewhere; python a.py”
To pull centos as a base image to build other docker images:
docker pull centos:centosX
Where X can be 5, 6 or 7
Command: docker run -p 5000:5000 registry
Error: docker run with Exited (1)
Cause: the CMD you run inside the docker exits with error
Solution: Check the error in docker log by these steps:
1. sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f4c94eb133b4 dockername:latest “httpd” 55 seconds ago Exited (1) 54 seconds ago0.0.0.0:80->80/tcp webserver
2. sudo docker logs CONTAINER_ID
gem query –local
The following 2 commands will do the job:
sudo docker ps -a | grep ‘Exited’ | awk ‘{print $1}’ | xargs –no-run-if-empty sudo docker rm
sudo docker images | grep ‘none’ | awk ‘{print $3}’ | xargs –no-run-if-empty sudo docker rmi
Delete local branch:
git branch -D [branchname]
Delete remote branch:
git branch -rd origin/[branchname]