You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker-for-mac/index.md
+8-7
Original file line number
Diff line number
Diff line change
@@ -131,18 +131,19 @@ Run these commands to test if your versions of `docker`, `docker-compose`, and `
131
131
132
132
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.
133
133
134
-
2. For something more adventurous, start a Dockerized web server.
134
+
2.For something more adventurous, start a Dockerized web server.
135
135
136
-
`docker run -d -p 80:80 --name webserver nginx`
136
+
```
137
+
docker run -d -p 80:80 --name webserver nginx
138
+
```
137
139
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.
139
141
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.)
141
143
142
-

144
+

143
145
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.
146
147
147
148
3. Run `docker ps` while your web server is running to see details on the webserver container.
0 commit comments