{"action":"created","comment":{"url":"https://api.github.com/repos/docker/libcontainer/pulls/comments/27541296","id":27541296,"diff_hunk":"@@ -28,30 +31,37 @@ mkdir /busybox\n curl -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar' | tar -xC /busybox\n ```\n \n-Then you may need to write a configure file named `container.json` in the `/busybox` folder.\n-Environment, networking, and different capabilities for the container are specified in this file.\n-The configuration is used for each process executed inside the container\n-See the `sample_configs` folder for examples of what the container configuration should look like.\n+Then you may need to write a configure file named `container.json` in the\n+`/busybox` folder. Environment, networking, and different capabilities for\n+the container are specified in this file. The configuration is used for each\n+process executed inside the container.\n+\n+See the `sample_configs` folder for examples of what the container configuration\n+should look like.\n \n ```\n cp libcontainer/sample_configs/minimal.json /busybox/container.json\n cd /busybox\n ```\n \n-Now the nsinit is ready to work.\n-To execute `/bin/bash` in the current directory as a container just run the following **as root**:\n+You need to change the `container.json` so every field is valid for your\n+environment. After that, nsinit is ready to work.\n+\n+To execute `/bin/bash` in the current directory as a container just run the\n+following **as root**:\n+\n ```bash\n-nsinit exec --tty /bin/bash\n+nsinit exec --tty --config container.json /bin/bash\n ```\n \n-If you wish to spawn another process inside the container while your \n-current bash session is running, run the same command again to \n-get another bash shell (or change the command).  If the original \n-process (PID 1) dies, all other processes spawned inside the container \n-will be killed and the namespace will be removed. \n+If you wish to spawn another process inside the container while your current\n+bash session is running, run the same command again to get another bash shell\n+(or change the command).  If the original process (PID 1) dies, all other\n+processes spawned inside the container will be killed and the namespace will\n+be removed. \n \n-You can identify if a process is running in a container by \n-looking to see if `state.json` is in the root of the directory.\n+You can identify if a process is running in a container by looking to see if\n+`state.json` is in the root of the directory.\n    \n-You may also specify an alternate root place where \n-the `container.json` file is read and where the `state.json` file will be saved.\n+You may also specify an alternate root place where the `container.json` file","path":"nsinit/README.md","position":80,"original_position":80,"commit_id":"e83db76ff50f967b357e0afb15785544fdad3257","original_commit_id":"e83db76ff50f967b357e0afb15785544fdad3257","user":{"login":"mrunalp","id":53798,"avatar_url":"https://avatars.githubusercontent.com/u/53798?v=3","gravatar_id":"","url":"https://api.github.com/users/mrunalp","html_url":"https://github.com/mrunalp","followers_url":"https://api.github.com/users/mrunalp/followers","following_url":"https://api.github.com/users/mrunalp/following{/other_user}","gists_url":"https://api.github.com/users/mrunalp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrunalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrunalp/subscriptions","organizations_url":"https://api.github.com/users/mrunalp/orgs","repos_url":"https://api.github.com/users/mrunalp/repos","events_url":"https://api.github.com/users/mrunalp/events{/privacy}","received_events_url":"https://api.github.com/users/mrunalp/received_events","type":"User","site_admin":false},"body":"root directory from where","created_at":"2015-04-01T02:46:45Z","updated_at":"2015-04-01T02:46:45Z","html_url":"https://github.com/docker/libcontainer/pull/493#discussion_r27541296","pull_request_url":"https://api.github.com/repos/docker/libcontainer/pulls/493","_links":{"self":{"href":"https://api.github.com/repos/docker/libcontainer/pulls/comments/27541296"},"html":{"href":"https://github.com/docker/libcontainer/pull/493#discussion_r27541296"},"pull_request":{"href":"https://api.github.com/repos/docker/libcontainer/pulls/493"}}},"pull_request":{"url":"https://api.github.com/repos/docker/libcontainer/pulls/493","id":32316524,"html_url":"https://github.com/docker/libcontainer/pull/493","diff_url":"https://github.com/docker/libcontainer/pull/493.diff","patch_url":"https://github.com/docker/libcontainer/pull/493.patch","issue_url":"https://api.github.com/repos/docker/libcontainer/issues/493","number":493,"state":"open","locked":false,"title":"fix README.md for nsinit","user":{"login":"hqhq","id":6415670,"avatar_url":"https://avatars.githubusercontent.com/u/6415670?v=3","gravatar_id":"","url":"https://api.github.com/users/hqhq","html_url":"https://github.com/hqhq","followers_url":"https://api.github.com/users/hqhq/followers","following_url":"https://api.github.com/users/hqhq/following{/other_user}","gists_url":"https://api.github.com/users/hqhq/gists{/gist_id}","starred_url":"https://api.github.com/users/hqhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hqhq/subscriptions","organizations_url":"https://api.github.com/users/hqhq/orgs","repos_url":"https://api.github.com/users/hqhq/repos","events_url":"https://api.github.com/users/hqhq/events{/privacy}","received_events_url":"https://api.github.com/users/hqhq/received_events","type":"User","site_admin":false},"body":"Cut the long lines and add `--config` to the `nsinit exec` command.\r\n\r\nSigned-off-by: Qiang Huang <h.huangqiang@huawei.com>","created_at":"2015-03-31T12:21:14Z","updated_at":"2015-04-01T02:46:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"975289878466d16f8f3cf895dc8d39ac6f80e788","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/libcontainer/pulls/493/commits","review_comments_url":"https://api.github.com/repos/docker/libcontainer/pulls/493/comments","review_comment_url":"https://api.github.com/repos/docker/libcontainer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/libcontainer/issues/493/comments","statuses_url":"https://api.github.com/repos/docker/libcontainer/statuses/e83db76ff50f967b357e0afb15785544fdad3257","head":{"label":"hqhq:hq_fix_nsinit_doc","ref":"hq_fix_nsinit_doc","sha":"e83db76ff50f967b357e0afb15785544fdad3257","user":{"login":"hqhq","id":6415670,"avatar_url":"https://avatars.githubusercontent.com/u/6415670?v=3","gravatar_id":"","url":"https://api.github.com/users/hqhq","html_url":"https://github.com/hqhq","followers_url":"https://api.github.com/users/hqhq/followers","following_url":"https://api.github.com/users/hqhq/following{/other_user}","gists_url":"https://api.github.com/users/hqhq/gists{/gist_id}","starred_url":"https://api.github.com/users/hqhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hqhq/subscriptions","organizations_url":"https://api.github.com/users/hqhq/orgs","repos_url":"https://api.github.com/users/hqhq/repos","events_url":"https://api.github.com/users/hqhq/events{/privacy}","received_events_url":"https://api.github.com/users/hqhq/received_events","type":"User","site_admin":false},"repo":{"id":26564059,"name":"libcontainer","full_name":"hqhq/libcontainer","owner":{"login":"hqhq","id":6415670,"avatar_url":"https://avatars.githubusercontent.com/u/6415670?v=3","gravatar_id":"","url":"https://api.github.com/users/hqhq","html_url":"https://github.com/hqhq","followers_url":"https://api.github.com/users/hqhq/followers","following_url":"https://api.github.com/users/hqhq/following{/other_user}","gists_url":"https://api.github.com/users/hqhq/gists{/gist_id}","starred_url":"https://api.github.com/users/hqhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hqhq/subscriptions","organizations_url":"https://api.github.com/users/hqhq/orgs","repos_url":"https://api.github.com/users/hqhq/repos","events_url":"https://api.github.com/users/hqhq/events{/privacy}","received_events_url":"https://api.github.com/users/hqhq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hqhq/libcontainer","description":"Linux Containers","fork":true,"url":"https://api.github.com/repos/hqhq/libcontainer","forks_url":"https://api.github.com/repos/hqhq/libcontainer/forks","keys_url":"https://api.github.com/repos/hqhq/libcontainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hqhq/libcontainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hqhq/libcontainer/teams","hooks_url":"https://api.github.com/repos/hqhq/libcontainer/hooks","issue_events_url":"https://api.github.com/repos/hqhq/libcontainer/issues/events{/number}","events_url":"https://api.github.com/repos/hqhq/libcontainer/events","assignees_url":"https://api.github.com/repos/hqhq/libcontainer/assignees{/user}","branches_url":"https://api.github.com/repos/hqhq/libcontainer/branches{/branch}","tags_url":"https://api.github.com/repos/hqhq/libcontainer/tags","blobs_url":"https://api.github.com/repos/hqhq/libcontainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hqhq/libcontainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hqhq/libcontainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/hqhq/libcontainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hqhq/libcontainer/statuses/{sha}","languages_url":"https://api.github.com/repos/hqhq/libcontainer/languages","stargazers_url":"https://api.github.com/repos/hqhq/libcontainer/stargazers","contributors_url":"https://api.github.com/repos/hqhq/libcontainer/contributors","subscribers_url":"https://api.github.com/repos/hqhq/libcontainer/subscribers","subscription_url":"https://api.github.com/repos/hqhq/libcontainer/subscription","commits_url":"https://api.github.com/repos/hqhq/libcontainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/hqhq/libcontainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/hqhq/libcontainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/hqhq/libcontainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/hqhq/libcontainer/contents/{+path}","compare_url":"https://api.github.com/repos/hqhq/libcontainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hqhq/libcontainer/merges","archive_url":"https://api.github.com/repos/hqhq/libcontainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hqhq/libcontainer/downloads","issues_url":"https://api.github.com/repos/hqhq/libcontainer/issues{/number}","pulls_url":"https://api.github.com/repos/hqhq/libcontainer/pulls{/number}","milestones_url":"https://api.github.com/repos/hqhq/libcontainer/milestones{/number}","notifications_url":"https://api.github.com/repos/hqhq/libcontainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hqhq/libcontainer/labels{/name}","releases_url":"https://api.github.com/repos/hqhq/libcontainer/releases{/id}","created_at":"2014-11-13T01:07:44Z","updated_at":"2015-03-04T04:09:55Z","pushed_at":"2015-04-01T02:35:25Z","git_url":"git://github.com/hqhq/libcontainer.git","ssh_url":"git@github.com:hqhq/libcontainer.git","clone_url":"https://github.com/hqhq/libcontainer.git","svn_url":"https://github.com/hqhq/libcontainer","homepage":"http://www.docker.com/","size":1739,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"1a246dd54326124df57cb0e8e051f57abb549c9f","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":15693680,"name":"libcontainer","full_name":"docker/libcontainer","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/libcontainer","description":"Linux Containers","fork":false,"url":"https://api.github.com/repos/docker/libcontainer","forks_url":"https://api.github.com/repos/docker/libcontainer/forks","keys_url":"https://api.github.com/repos/docker/libcontainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/libcontainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/libcontainer/teams","hooks_url":"https://api.github.com/repos/docker/libcontainer/hooks","issue_events_url":"https://api.github.com/repos/docker/libcontainer/issues/events{/number}","events_url":"https://api.github.com/repos/docker/libcontainer/events","assignees_url":"https://api.github.com/repos/docker/libcontainer/assignees{/user}","branches_url":"https://api.github.com/repos/docker/libcontainer/branches{/branch}","tags_url":"https://api.github.com/repos/docker/libcontainer/tags","blobs_url":"https://api.github.com/repos/docker/libcontainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/libcontainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/libcontainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/libcontainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/libcontainer/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/libcontainer/languages","stargazers_url":"https://api.github.com/repos/docker/libcontainer/stargazers","contributors_url":"https://api.github.com/repos/docker/libcontainer/contributors","subscribers_url":"https://api.github.com/repos/docker/libcontainer/subscribers","subscription_url":"https://api.github.com/repos/docker/libcontainer/subscription","commits_url":"https://api.github.com/repos/docker/libcontainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/libcontainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/libcontainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/libcontainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/libcontainer/contents/{+path}","compare_url":"https://api.github.com/repos/docker/libcontainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/libcontainer/merges","archive_url":"https://api.github.com/repos/docker/libcontainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/libcontainer/downloads","issues_url":"https://api.github.com/repos/docker/libcontainer/issues{/number}","pulls_url":"https://api.github.com/repos/docker/libcontainer/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/libcontainer/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/libcontainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/libcontainer/labels{/name}","releases_url":"https://api.github.com/repos/docker/libcontainer/releases{/id}","created_at":"2014-01-07T03:05:05Z","updated_at":"2015-03-31T19:59:01Z","pushed_at":"2015-04-01T02:35:25Z","git_url":"git://github.com/docker/libcontainer.git","ssh_url":"git@github.com:docker/libcontainer.git","clone_url":"https://github.com/docker/libcontainer.git","svn_url":"https://github.com/docker/libcontainer","homepage":"http://www.docker.com/","size":7037,"stargazers_count":732,"watchers_count":732,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":50,"forks":201,"open_issues":50,"watchers":732,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/libcontainer/pulls/493"},"html":{"href":"https://github.com/docker/libcontainer/pull/493"},"issue":{"href":"https://api.github.com/repos/docker/libcontainer/issues/493"},"comments":{"href":"https://api.github.com/repos/docker/libcontainer/issues/493/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/libcontainer/pulls/493/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/libcontainer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/libcontainer/pulls/493/commits"},"statuses":{"href":"https://api.github.com/repos/docker/libcontainer/statuses/e83db76ff50f967b357e0afb15785544fdad3257"}}}}