From eafe34cb7444f5bcb3be07a231827c5f3a9478df Mon Sep 17 00:00:00 2001 From: Cyro Dubeux Date: Sun, 9 May 2021 22:28:50 -0300 Subject: [PATCH 1/2] updated instructions --- README.md | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 539eea7..94a2329 100644 --- a/README.md +++ b/README.md @@ -48,15 +48,31 @@ Docker In order to run own copy of the book with gitook within local container: -1. Build container image +1. Enable Docker experimental features with vim or other text editor + ```bash + sudo vim /usr/lib/systemd/system/docker.service + ``` + + Then add --experimental=true to the end of the ExecStart=/usr/bin/dockerd -H fd:// line and save. + + Eg: *ExecStart=/usr/bin/dockerd -H fd:// --experimental=true* + + Then, you need to reload and restart the Docker daemon: + ```bash + systemctl daemon-reload + systemctl restart docker.service + ``` + +2. Build container image ```bash docker image build \ --rm --squash \ --label linux-insides \ --tag linux-insides-book:latest \ - -f Dockerfile + -f Dockerfile . ``` -1. Create and run book in local container + +3. Create and run book in local container ```bash docker run \ --detach \ @@ -64,9 +80,10 @@ In order to run own copy of the book with gitook within local container: -p 4000:4000 \ --name linux-insides-book \ --hostname linux-insides-book \ - localhost/linux-insides-book + linux-insides-book ``` -1. Open your local copy of linux insides book under this url + +4. Open your local copy of linux insides book under this url http://127.0.0.1:4000 Contributions From 024f7896ca2418bbe0c95c1a46e2db1880c399f1 Mon Sep 17 00:00:00 2001 From: Cyro Dubeux Date: Mon, 10 May 2021 21:11:16 -0300 Subject: [PATCH 2/2] typo fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 94a2329..f57963f 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,9 @@ On other languages Docker ------ -In order to run own copy of the book with gitook within local container: +In order to run your own copy of the book with gitbook within a local container: -1. Enable Docker experimental features with vim or other text editor +1. Enable Docker experimental features with vim or another text editor ```bash sudo vim /usr/lib/systemd/system/docker.service ``` @@ -84,7 +84,7 @@ In order to run own copy of the book with gitook within local container: ``` 4. Open your local copy of linux insides book under this url - http://127.0.0.1:4000 + http://localhost:4000 Contributions --------------