File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Developing Using Docker
2
+
2
3
## Install Docker
4
+
3
5
Follow the apporpriate installation guide provided by [ Docker] ( https://docs.docker.com/installation/#installation ) to get setup.
4
6
5
- ## Run a Sculpin contain
6
- From the checked out repo
7
+ ## Run a Sculpin container
8
+
9
+ From the checked out repo:
10
+
7
11
``` 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
9
14
```
10
15
11
16
## View changes in action
12
17
13
18
Browse to your running docker container.
14
19
15
20
- 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" `
17
26
18
27
There, you did it! Congratulations.
You can’t perform that action at this time.
0 commit comments