Skip to content

Commit 820555c

Browse files
Michael Johnseysvpernova09
Michael Johnsey
authored andcommitted
Clean up the doc and update for newer versions of Docker for Mac (#85)
1 parent e7c8c9a commit 820555c

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

documentation/with_docker.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
# Developing Using Docker
2+
23
## Install Docker
4+
35
Follow the apporpriate installation guide provided by [Docker](https://docs.docker.com/installation/#installation) to get setup.
46

5-
## Run a Sculpin contain
6-
From the checked out repo
7+
## Run a Sculpin container
8+
9+
From the checked out repo:
10+
711
```sh
8-
docker run -d -p 8000:8000 -v "$PWD:/data" clue/sculpin generate --watch --server
12+
#!/usr/bin/env sh
13+
docker run -it --rm -p 8000:8000 -v "$(pwd)":/data -u $(id -u) clue/sculpin generate --watch --server
914
```
1015

1116
## View changes in action
1217

1318
Browse to your running docker container.
1419

1520
- Linux: [http://localhost:8000](http://localhost:8000)
16-
- Mac: prbably [http://192.168.59.103:8000](http://192.168.59.103:8000)
21+
- Mac
22+
- Newer versions of Docker will work the same as Linux: [http://localhost:8000](http://localhost:8000)
23+
- Older version of Docker for Mac will have its own IP on your machine, default is: [http://192.168.99.100:8000](http://192.168.99.100:8000)
24+
- If that does not work, open from the command line run the following command:
25+
`open "http://$(docker-machine ip):8000"`
1726

1827
There, you did it! Congratulations.

0 commit comments

Comments
 (0)