Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
logeshkrish authored Jan 28, 2021
1 parent 05b0011 commit f13b84d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ Request :
```

# Command Line Utility

```
command line utility for sail
```
## To List All Process on Current User
```
To List All Process on Current User
$ ./sail list --all process
Expand All @@ -107,16 +111,18 @@ $ ./sail list --all process
1126 1124 /opt/google/chrome/nacl_helper
1127 1125 /opt/google/chrome/nacl_helper
1130 1125 /opt/google/chrome/chrome --type=zygote
```

To Containerize the Process:
Dockerize Help:
## To Containerize the Process:

## Dockerize Help:
```
$ ./sail dockerize -h
Migrate a running linux process in to a Docker Image.
sail dockerize --pid <process id> [--time <time in seconds>] [--imageName <docker image name>]
-p, --pid pid of the process to trace.
Expand All @@ -125,9 +131,11 @@ sail dockerize --pid <process id> [--time <time in seconds>] [--imageName <docke
-v, --verbose Run with Verbose Mode
-d, --directories Directories to be copied(seperated by comma)
```

## To Strace your process and create a docker image and run as container:

To Strace your process and create a docker image and run as container:
```
$ ./sail dockerize -p 14141 -i nodechecker -t 20 -d /home/bluemeric/codebase/src/gopaddle/nodechecker
Expand All @@ -142,4 +150,5 @@ Docker file copying completed
Copying fmt file of trace to container...
&{1001 1001 bluemeric /home/bluemeric}
nodechecker created
```

0 comments on commit f13b84d

Please sign in to comment.