Skip to content

Commit 390d84e

Browse files
committed
add more detail on container doc
1 parent 9ec8715 commit 390d84e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,16 @@ The included Dockerfile serves as an example on how a project image can be built
199199

200200
To run a persistent container:
201201
```
202-
$ docker container run --name containername go-mssql-runner-imagename start -u someuser -p somepass -s someserverip -d somedbname -c someconfigfile.json --logformat JSON
202+
docker container run -i --name containername go-mssql-runner-imagename start -u someuser -p somepass -s someserverip -d somedbname -c someconfigfile.json --logformat JSON
203203
```
204204
To access the container log and save to file
205205
```
206206
docker container logs containername > log.txt
207207
```
208+
To run it again
209+
```
210+
docker container start -i containername
211+
```
208212
To run an ephemereal container and save log to file
209213
```
210214
docker container run -i --rm go-mssql-runner-imagename start -u someuser -p somepass -s someserverip -d somedbname -c someconfigfile.json --logformat JSON 2>&1 | tee -a log.txt
@@ -217,14 +221,15 @@ docker container run -i --rm go-mssql-runner-imagename start -u someuser -p some
217221
* Get detailed account of what ran using the different log level in the -l flag of start command.
218222
* Save the screen output to a text file by specifiing the --logfile flag of the start command.
219223
* Use the JSON option on the --logformat flag to outout the log in JSON format and make it easy to parse.
220-
* Although scripts are run sequentially, concurrent operation can be accomplished via scripting or cli techniques. Separate operations that can be run concurrently into their own projectsFor example in Bash, commands can be run in parallel using '&':
221-
* Build Docker images to encapsulate versions of your project. For example, create an image for dev/test and another image for production.
222-
* Docker containers can be run repeatedly. Command parameters need not be specified each time. Just run "docker start <containerName>" to rerun projects.
223-
224+
* Although scripts are run sequentially, concurrent operation can be accomplished via scripting or cli techniques. Separate operations that can be run concurrently into their own projects. For example in Bash, commands can be run in parallel using '&':
224225

225226
```
226227
$ command1 & command2
227228
```
229+
* Build Docker images to encapsulate versions of your project. For example, create an image for dev/test and another image for production.
230+
* Docker containers can be run repeatedly. Command parameters need not be specified each time. Just run "docker start ContainerName" to rerun projects.
231+
232+
228233

229234

230235
# Roadmap

0 commit comments

Comments
 (0)