Docker
Install
Download -> Install
$ docker -v
Docker version 17.09.0-ce, build afdb6d4
$ docker --version
Docker version 17.09.0-ce, build afdb6d4
$ docker version
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:09 2017
OS/Arch: darwin/amd64
Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:45:38 2017
OS/Arch: linux/amd64
Experimental: false
Test
$ docker run -d -p 80:80 --name webserver nginx
86f8dbc9c2aeb2b71083fde123516ba01344ba0a0dec58a29a578c1af7c47f8b
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
86f8dbc9c2ae nginx "nginx -g 'daemon ..." About a minute ago Up About a minute 0.0.0.0:80->80/tcp webserver
visit localhost