How to uninstall docker from mac

docker remove mac shell 4 years, 7 months ago
#!/bin/bash # Uninstall Script if [ "${USER}" != "root" ]; then echo "$0 must be run as root!" exit 2 fi while true; do read -p "Remove all Docker Machine VMs? (Y/N): " yn case $yn in [Yy]* ) docker-machine rm -f $(docker-machine ls -q); break;; [Nn]* ) break;; * ) echo "Please answer yes or no."; exit 1;; esac done echo "Removing Applications..." rm -rf /Applications/Docker.app echo "Removing docker binaries..." rm -f /usr/local/bin/docker rm -f /usr/local/bin/docker-machine rm -r /usr/local/bin/docker-machine-driver* rm -f /usr/local/bin/docker-compose echo "Removing boot2docker.iso" rm -rf /usr/local/share/boot2docker echo "Forget packages" pkgutil --forget io.docker.pkg.docker pkgutil --forget io.docker.pkg.dockercompose pkgutil --forget io.docker.pkg.dockermachine pkgutil --forget io.boot2dockeriso.pkg.boot2dockeriso echo "All Done!"
1065
Instructions

run it with sudo bash uninstall.sh

Posted By
Shell Script to Monitor Site with Json conten
a=`curl --insecure -I SITE-NAME | awk 'N
b=`wget -qO- --no-check-certificate SITE
if [[ "$a" -eq 200 ]]; then
shell Site-Monitor
sandeep sandeep
Shell Script to Generate the SSH key and disp
export PATH=$WORKSPACE/resources/chromed
export PYTHONPATH=$WORKSPACE

shell auto ssh key
sandeep sandeep
Run shell files in javascript
//JS Code
function runShellScript(){
    const process = require('child_proce
javascript shell node js
harika
copy a file and replace with another or origi
# way1

cp -f /path/to/file1.txt /another/path/t
shell
kishore_kumar
Rename or change git branch name
git branch -m <old-name> <new-name>
git push origin :<old-name> <new-name>
git shell
kishore_kumar
To delete all the none docker images in singl
docker rmi $(docker images | grep "^<non
shell docker
ashokrebel007 ashokrebel007
Remote copying (One centos machine to another
scp filename username@ipaddress:destinat

For example :
shell centos
ashokrebel007 ashokrebel007
Gitlab tags
git tag -a versionnumber -m "versionmess
git push origin versionnumber
git shell
ashokrebel007 ashokrebel007
Return a string from shell function
#!/bin/sh

hello()
string shell
harika
How to check the logs around or at particular
#If you want to check the logs since 1 h
git log --since="1 hour ago"

git shell
harika
How to untrack/ unstage a file i.e already tr
git reset HEAD fileName.txt
git shell
harika
get logs in oneline / readable form in git
git log --oneline --graph --decorate
git shell
harika
Create alias in gitconfig from commandline
#here i am trying to make the one line l
git config --global alias.sLog "log --on

git shell
harika
Stop or remove all docker containers command
# docker ps -a -q  -> will return all id
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
shell docker
kishore_kumar
vi editor save without exit from editor
:wq # will save and exit
:w # will save
:q! # exit without saving
vi linux shell
kishore_kumar
Linux Navigation
pwd  #print the name of current working 
cd  #change directory
ls #List directory contents
linux shell
Ramya Ramya
How to find the port which is running and sto
sudo lsof -i tcp:port //To find the port

kill pid //kills the process which is ru
shell kill port
Reshma
How to unzip file in terminal
unzip file_name
shell unzip
Reshma
How to execute a curl command with bash scrip
result=$(curl -n \
-X POST -H 'Content-Type: application/js
"give_url" \
shell curl with shell
Reshma
How to install Home Brew in mac
/bin/bash -c "$(curl -fsSL https://raw.g
brew shell mac
Reshma