NixOS Containers: Difference between revisions

From NixOS Wiki
imported>Mic92
m Mic92 moved page Containers to NixOS Containers: containers is a broader term
imported>Roberth
m NixOS manual chapter numbers change over time, so omit the number
Line 15: Line 15:
== See also ==
== See also ==


{{manual:nixos|sec=#ch-containers|chapter=Chapter 28. Container Management}}
{{manual:nixos|sec=#ch-containers|chapter=Chapter on Container Management}}

Revision as of 15:31, 4 September 2018

There's not much to read here. Look at NixOS Manual, the upstream documentation on containers meanwhile.

Troubleshooting

I have changed the host's channel and some services are no longer functional

Symptoms:

  • Lost data in PostgreSQL database
  • MySQL has changed its path, where it creates the database

Solution

If you did not have a system.stateVersion option set inside your declarative container configuration, it will use the default one for the channel. Your data might be safe, if you did nothing meanwhile. Add the missing system.stateVersion to your container, rebuild, and possibly stop/start the container.

See also

NixOS Manual, Chapter on Container Management