Skip to content

Commit 43065e0

Browse files
johndmulhausenLRubin
authored and
LRubin
committed
Update index.md
1 parent 1ab6a4f commit 43065e0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docker-for-mac/index.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,19 @@ Run these commands to test if your versions of `docker`, `docker-compose`, and `
131131

132132
Some good commands to try are `docker version` to check that you have the latest release installed, and `docker ps` and `docker run hello-world` to verify that Docker is running.
133133

134-
2. For something more adventurous, start a Dockerized web server.
134+
2. For something more adventurous, start a Dockerized web server.
135135

136-
`docker run -d -p 80:80 --name webserver nginx`
136+
```
137+
docker run -d -p 80:80 --name webserver nginx
138+
```
137139
138-
If the image is not found locally, Docker will pull it from Docker Hub.
140+
If the image is not found locally, Docker will pull it from Docker Hub.
139141
140-
In a web browser, go to `http://localhost/` to bring up the home page. (Since you specified the default HTTP port, it isn't necessary to append `:80` at the end of the URL.)
142+
In a web browser, go to `http://localhost/` to bring up the home page. (Since you specified the default HTTP port, it isn't necessary to append `:80` at the end of the URL.)
141143
142-
![nginx home page](images/hello-world-nginx.png)
144+
![nginx home page](images/hello-world-nginx.png)
143145
144-
>**Note:** Early beta releases used `docker` as the hostname to build the URL. Now, ports are exposed on the private IP addresses of the VM and forwarded to `localhost` with no other host name set. See also, [Release Notes](release-notes.md) for Beta 9.
145-
>
146+
>**Note:** Early beta releases used `docker` as the hostname to build the URL. Now, ports are exposed on the private IP addresses of the VM and forwarded to `localhost` with no other host name set. See also, [Release Notes](release-notes.md) for Beta 9.
146147
147148
3. Run `docker ps` while your web server is running to see details on the webserver container.
148149

0 commit comments

Comments
 (0)