You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-61Lines changed: 4 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,68 +15,11 @@ See [Getting Started](https://sensorsiot.github.io/IOTstack/Getting-Started) in
15
15
16
16
### significant change to networking
17
17
18
-
Networking under both *new menu* (master branch) and *old menu* (old-menu branch) has undergone a significant change. This will not affect new users of IOTstack (who will adopt it automatically). Neither will it affect existing users who do not use the menu to maintain their stacks (see [adopting networking changes by hand](#networkHandEdit) below).
19
-
20
-
Users who *do* use the menu to maintain their stacks will also be unaffected *until the next menu run*, at which point it will be prudent to down your stack entirely and re-select all your containers. Downing the stack causes Docker to remove all associated networks as well as the containers.
18
+
After 2022-01-18 the menu has changed to use Docker networks differently. Users from before this need to do [migration](https://sensorsiot.github.io/IOTstack/Updates/migration-network-change/) in order to add new services. In essence, just re-select all your services using the menu. If not done, docker-compose will give you an error like:
21
19
22
-
These changes mean that networking is **identical** under both *old* and *new* menus. To summarise the changes:
23
-
24
-
1. Only two internal networks are defined – as follows:
25
-
26
-
* "default" which adopts the name `iotstack_default` at runtime.
27
-
* "nextcloud" which adopts the name `iotstack_nextcloud` at runtime.
28
-
29
-
If you are using docker-compose v2.0.0 or later then the `iotstack_nextcloud` network will only be instantiated if you select NextCloud as one of your services. Earlier versions of docker-compose instantiate all networks even if no service uses them (which is why you get those warnings at "up" time).
30
-
31
-
2. The only service definitions which now have `networks:` directives are:
32
-
33
-
* NextCloud: joins the "default" and "nextcloud" networks; and
34
-
* NextCloud_DB: joins the "nextcloud" network.
35
-
36
-
All other containers will join the "default" network, automatically, without needing any `networks:` directives.
37
-
38
-
#### <aname="networkHandEdit"> adopting networking changes by hand </a>
39
-
40
-
If you maintain your `docker-compose.yml` by hand, you can adopt the networking changes by doing the following:
41
-
42
-
1. Take your stack down. This causes Docker to remove any existing networks.
43
-
2. Remove **all**`networks:` directives wherever they appear in your `docker-compose.yml`. That includes:
44
-
45
-
* the `networks:` directives in all service definitions; and
46
-
* the `networks:` specifications at the end of the file.
47
-
48
-
3. Append the contents of the following file to your `docker-compose.yml`:
Networking under both *new menu* (master branch) and *old menu* (old-menu branch) has undergone a significant change. This will not affect new users of IOTstack (who will adopt it automatically). Neither will it affect existing users who do not use the menu to maintain their stacks (see [adopting networking changes by hand](#networkHandEdit) below).
4
+
5
+
Users who *do* use the menu to maintain their stacks will also be unaffected *until the next menu run*, at which point it will be prudent to down your stack entirely and re-select all your containers. Downing the stack causes Docker to remove all associated networks as well as the containers.
6
+
7
+
These changes mean that networking is **identical** under both *old* and *new* menus. To summarise the changes:
8
+
9
+
1. Only two internal networks are defined – as follows:
10
+
11
+
* "default" which adopts the name `iotstack_default` at runtime.
12
+
* "nextcloud" which adopts the name `iotstack_nextcloud` at runtime.
13
+
14
+
If you are using docker-compose v2.0.0 or later then the `iotstack_nextcloud` network will only be instantiated if you select NextCloud as one of your services. Earlier versions of docker-compose instantiate all networks even if no service uses them (which is why you get those warnings at "up" time).
15
+
16
+
2. The only service definitions which now have `networks:` directives are:
17
+
18
+
* NextCloud: joins the "default" and "nextcloud" networks; and
19
+
* NextCloud_DB: joins the "nextcloud" network.
20
+
21
+
All other containers will join the "default" network, automatically, without needing any `networks:` directives.
22
+
23
+
#### <aname="networkHandEdit"> adopting networking changes by hand </a>
24
+
25
+
If you maintain your `docker-compose.yml` by hand, you can adopt the networking changes by doing the following:
26
+
27
+
1. Take your stack down. This causes Docker to remove any existing networks.
28
+
2. Remove **all**`networks:` directives wherever they appear in your `docker-compose.yml`. That includes:
29
+
30
+
* the `networks:` directives in all service definitions; and
31
+
* the `networks:` specifications at the end of the file.
32
+
33
+
3. Append the contents of the following file to your `docker-compose.yml`:
0 commit comments