In your command-line run the following commands:
brew doctor
brew update
[ | |
{"code":"ab","name":"Abkhaz","nativeName":"аҧсуа"}, | |
{"code":"aa","name":"Afar","nativeName":"Afaraf"}, | |
{"code":"af","name":"Afrikaans","nativeName":"Afrikaans"}, | |
{"code":"ak","name":"Akan","nativeName":"Akan"}, | |
{"code":"sq","name":"Albanian","nativeName":"Shqip"}, | |
{"code":"am","name":"Amharic","nativeName":"አማርኛ"}, | |
{"code":"ar","name":"Arabic","nativeName":"العربية"}, | |
{"code":"an","name":"Aragonese","nativeName":"Aragonés"}, | |
{"code":"hy","name":"Armenian","nativeName":"Հայերեն"}, |
docker build -t friendlyname . # Create image using this directory's Dockerfile | |
docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80 | |
docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode | |
docker exec -it [container-id] bash # Enter a running container | |
docker ps # See a list of all running containers | |
docker stop <hash> # Gracefully stop the specified container | |
docker ps -a # See a list of all containers, even the ones not running | |
docker kill <hash> # Force shutdown of the specified container | |
docker rm <hash> # Remove the specified container from this machine | |
docker rm $(docker ps -a -q) # Remove all containers from this machine |
In your command-line run the following commands:
brew doctor
brew update