mirror of
https://github.com/0xAX/linux-insides.git
synced 2025-05-17 19:48:45 +00:00
updated instructions
This commit is contained in:
parent
62cff99880
commit
eafe34cb74
27
README.md
27
README.md
@ -48,15 +48,31 @@ Docker
|
|||||||
|
|
||||||
In order to run own copy of the book with gitook within local container:
|
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
|
```bash
|
||||||
docker image build \
|
docker image build \
|
||||||
--rm --squash \
|
--rm --squash \
|
||||||
--label linux-insides \
|
--label linux-insides \
|
||||||
--tag linux-insides-book:latest \
|
--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
|
```bash
|
||||||
docker run \
|
docker run \
|
||||||
--detach \
|
--detach \
|
||||||
@ -64,9 +80,10 @@ In order to run own copy of the book with gitook within local container:
|
|||||||
-p 4000:4000 \
|
-p 4000:4000 \
|
||||||
--name linux-insides-book \
|
--name linux-insides-book \
|
||||||
--hostname 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
|
http://127.0.0.1:4000
|
||||||
|
|
||||||
Contributions
|
Contributions
|
||||||
|
Loading…
Reference in New Issue
Block a user