Skip to content

Commit 54ca8d7

Browse files
committed
guides: Updated Nginx version And network syntax
Signed-off-by: Ansuman Sahoo <[email protected]>
1 parent 8c99b9f commit 54ca8d7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

content/guides/using-the-app-catalog.mdx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ As a user it shouldn't matter to you.
1717
You can list the applications in the registry by using:
1818

1919
```bash
20-
$ kraft pkg ls --apps --all --update
20+
kraft pkg ls --apps --all --update
2121
```
2222
```
2323
TYPE NAME VERSION FORMAT MANIFEST INDEX PLAT
@@ -82,7 +82,7 @@ If you are running natively (for maximum performance), and if you likely have ha
8282
Similarly, we can pull and run Nginx:
8383

8484
```bash
85-
kraft run -W unikraft.org/nginx
85+
kraft run -W unikraft.org/nginx:1.15
8686
```
8787
```
8888
i using arch=x86_64 plat=qemu
@@ -99,7 +99,7 @@ Note that the Nginx server starts but waits for a connection.
9999
In order to connect to it, we need to pass a port mapping, similar to [`docker` commands](https://docs.docker.com/network/#published-ports):
100100

101101
```bash
102-
kraft run -W -p 8080:80 unikraft.org/nginx
102+
kraft run -W -p 8080:80 unikraft.org/nginx:1.15
103103
```
104104
```
105105
i using arch=x86_64 plat=qemu
@@ -113,6 +113,12 @@ oOo oOO| | | | | (| | | (_) | _) :_
113113
Telesto 0.16.1~b1fa7c5
114114
```
115115

116+
117+
<Info>
118+
You can use nginx version 1.25 instead of version 1.15 by appending `:1.25` to the `kraft run` command.
119+
For example: `kraft run -W unikraft.org/nginx:1.25`
120+
</Info>
121+
116122
With the command above we mapped the local port `8080` to the internal Nginx Unikraft port `80`:
117123
Query the server to get the index page:
118124

@@ -140,7 +146,7 @@ For an IP-based network connection, you can use a bridged interface.
140146
First create a bridge interface, as `root` (prefix with `sudo` if required):
141147

142148
```bash
143-
sudo kraft run --network bridge:virbr0 unikraft.org/nginx
149+
sudo kraft run --network virbr0 unikraft.org/nginx:1.15
144150
```
145151
```
146152
i using arch=x86_64 plat=qemu
@@ -247,7 +253,7 @@ If, instead of port mapping, you want to use bridge networking, follow the steps
247253
1. Run as `root` (prefix with `sudo` if required):
248254

249255
```bash
250-
kraft run --network bridge:virbr0 .
256+
kraft run --network virbr0 .
251257
```
252258

253259
1. Query the unikernel instance:
@@ -304,7 +310,7 @@ If, instead of port mapping, you want to use bridge networking, follow the steps
304310
1. Run as `root` (prefix with `sudo` if required):
305311

306312
```bash
307-
sudo KRAFTKIT_BUILDKIT_HOST=docker-container://buildkitd kraft run --network bridge:virbr0 .
313+
sudo KRAFTKIT_BUILDKIT_HOST=docker-container://buildkitd kraft run --network virbr0 .
308314
```
309315

310316
1. Query the unikernel instance:

0 commit comments

Comments
 (0)