Skip to content

Commit 9ac7c8d

Browse files
committed
Minor, markdown fixes
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 4bd80ec commit 9ac7c8d

File tree

2 files changed

+19
-29
lines changed

2 files changed

+19
-29
lines changed

_posts/2024-03-08-containers.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@ tags: [container, containers, docker, podman]
88

99
![Docker whale](/assets/img/docker.webp){: width="200" .right}
1010

11-
A network operating system for switches and routers, that runs Docker?
11+
An operating system for switches, routers, and end devices that runs Docker?
1212

1313
Yes, as of Infix v24.02 support for running containers using [podman][1]
14-
is supported. Because networking is a first class citizen in Infix, you
15-
can set up quite advanced *virtual topologies* with containers. This
16-
blog post is the first in a series of posts that aims to show this.
17-
18-
> This post assumes knowledge and familiarity with the [Infix Network
19-
> Operating System](https://kernelkit.github.io/). Ensure you have
20-
> either a network connection or console access to your Infix system and
21-
> can log in to it using SSH. Recommended reading includes the
22-
> [networking documentation][0].
14+
is supported. Because networking is a first class citizen in Infix, you
15+
can set up quite advanced virtual topologies with containers. This blog
16+
post is the first in a series that aims to show this.
17+
18+
> This post assumes knowledge and familiarity with [Infix][4]. Ensure
19+
> you have either a network connection or console access to your Infix
20+
> system and can log in to it using SSH. Recommended reading includes
21+
> the [networking documentation][0].
2322
{: .prompt-info }
2423

25-
26-
----
24+
---
2725

2826
## Introduction
2927

@@ -42,7 +40,6 @@ Notice the slight change in the prompt. Return to the Bash shell using
4240
the `exit` command, or Ctrl-D, from the "admin-exec" top level of the
4341
CLI.
4442

45-
4643
## Networking Basics
4744

4845
![Dataplane overview](/assets/img/dataplane.svg){: width="430" .right}
@@ -51,8 +48,8 @@ In Infix all network access has to be set up explicitly, so there is no
5148
default container networking setup (it's a security thing). There are
5249
two types available to choose from:
5350

54-
- `host`: Ethernet interface
55-
- `bridge`: Masquerading bridge
51+
- `host`: Ethernet interface
52+
- `bridge`: Masquerading bridge
5653

5754
The first can be any physical port/interface which is handed over to the
5855
container or, more commonly, one end of a *VETH pair*.
@@ -73,7 +70,6 @@ admin@infix:/config/interface/docker0> set container-network
7370
admin@infix:/config/interface/docker0> leave
7471
```
7572

76-
7773
## Web Server Container
7874

7975
![nginx](/assets/img/nginx.png){: width="60" .left}
@@ -119,7 +115,6 @@ host's IP address.
119115
![](/assets/img/nginx-welcome.png)
120116
_Nginx default landing page._
121117

122-
123118
> See the [end of this post](#container-content-in-device-configuration)
124119
> for how to store container file content in the Infix configuration!
125120
> Meaning custom(er) builds of Infix can bundle a built-in container's
@@ -154,10 +149,9 @@ d95ce9f7674d:/# vi /usr/share/nginx/html/
154149
50x.html index.html
155150
d95ce9f7674d:/# vi /usr/share/nginx/html/index.html
156151
... edit, save & exit from vi ...
157-
d95ce9f7674d:/#
152+
d95ce9f7674d:/#
158153
```
159154

160-
161155
## Container Content in Device Configuration
162156

163157
Save the best for last? A neat feature is that container content can be
@@ -224,7 +218,6 @@ admin@infix:/config/container/web/mount/index.html/> leave
224218

225219
Reload your browser to see the change.
226220

227-
228221
## Fin
229222

230223
That's the end of the first post about containers in Infix. Remember to
@@ -240,3 +233,4 @@ Take care! 🧡
240233
[1]: https://podman.io
241234
[2]: https://www.docker.com/resources/what-container/
242235
[3]: https://github.com/kernelkit/infix/blob/main/doc/cli/text-editor.md
236+
[4]: https://kernelkit.org/

_posts/2024-10-15-basic-container.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ See the [first post][1] for a background and networking basics.
2626
> [networking documentation][0].
2727
{: .prompt-info }
2828

29-
----
30-
29+
---
3130

3231
## Introduction
3332

@@ -41,7 +40,6 @@ which is usually hidden from users.
4140
2. In Qemu you need to activate separate `/var`, at least 256 MiB: `./qemu.sh -c`
4241
3. Start Infix: `./qemu.sh`
4342

44-
4543
## Configuration
4644

4745
The Infix configuration consists of two parts: networking setup and the
@@ -52,7 +50,6 @@ be handed over to the container.
5250
Notice the *DHCP client* on interface `e1`, it is required since we need
5351
Internet access to download the container image below.
5452

55-
5653
```console
5754
admin@infix:/> configure
5855
admin@infix:/config/> set dhcp-client client-if e1
@@ -82,7 +79,6 @@ admin@infix:/config/container/system/> leave
8279
> just as easily kept going all through the new configuration.
8380
{: .prompt-info }
8481

85-
8682
## The Result
8783

8884
We should now have a running container.
@@ -104,7 +100,7 @@ lo Link encap:Local Loopback
104100
UP LOOPBACK RUNNING MTU:65536 Metric:1
105101
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
106102
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
107-
collisions:0 txqueuelen:1000
103+
collisions:0 txqueuelen:1000
108104
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
109105

110106
eth0 Link encap:Ethernet HWaddr D2:A3:70:0D:50:00
@@ -113,11 +109,11 @@ eth0 Link encap:Ethernet HWaddr D2:A3:70:0D:50:00
113109
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
114110
RX packets:63 errors:0 dropped:9 overruns:0 frame:0
115111
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
116-
collisions:0 txqueuelen:1000
112+
collisions:0 txqueuelen:1000
117113
RX bytes:12867 (12.5 KiB) TX bytes:3064 (2.9 KiB)
118114

119115
root@sys101:~$ exit
120-
admin@infix:/>
116+
admin@infix:/>
121117
```
122118

123119
## Fin
@@ -131,7 +127,7 @@ admin@infix:/> copy running-config startup-config
131127

132128
Take care! 🧡
133129

134-
----
130+
---
135131

136132
[0]: https://github.com/kernelkit/infix/blob/main/doc/networking.md
137133
[1]: /posts/containers/

0 commit comments

Comments
 (0)