summaryrefslogtreecommitdiffstats
path: root/nixos/tests/docker.nix
AgeCommit message (Collapse)Author
2021-05-08nixos/docker: ensure ipv4 forwarding is enabledLaurynas Alekna
Fixes #118656
2021-01-15Revert "nixos/tests/docker: wait for docker service"Mark Vainomaa
This reverts commit c14bafd6c7db3b0c03574e28831821adda22a6f1.
2021-01-15nixos/tests/docker: wait for docker service (#109418)Milan
Previously the Docker daemon was started by systemd socket activation. Thus, the Docker test waited for the sockets.target unit. But when the docker module was changed to start the Docker daemon at boot instead of by socket activation, the test was left untouched. With the Docker 20.10 update this lead to a timing issue, where the docker command is run before the Docker daemon has started and hangs. Fixes #109416
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2020-06-26docker: use git tags instead of revsSergey Lukjanov
2019-11-07nixos/docker: port test to pythonMarijan
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth
2017-09-04docker: Add test for docker-edge, check for proper versions in testsTim Steinbach
2017-04-03docker: test for socket permissionsGraham Christensen
2016-09-13docker module: updatesJaka Hudoklin
- logDriver option, use journald for logging by default - keep storage driver intact by default, as docker has sane defaults - do not choose storage driver in tests, docker will choose by itself - use dockerd binary as "docker daemon" command is deprecated and will be removed - add overlay2 to list of storage drivers
2016-03-19nixos/tests: fix docker testJoachim Fasting
The docker service is socket activated by default; thus, `waitForUnit("docker.service")` before any docker command causes the unit test to time out. Instead, do `waitForUnit("sockets.target")` to ensure that sockets are setup before running docker commands.
2015-10-04nixos/docker: default storageDriver to "devicemapper"Bjørn Forsman
Commit 9bfe92ecee ("docker: Minor improvements, fix failing test") added the services.docker.storageDriver option, made it mandatory but didn't give it a default value. This results in an ugly traceback when users enable docker, if they don't pay enough attention to also set the storageDriver option. (An attempt was made to add an assertion, but it didn't work, possibly because of how "mkMerge" works.) The arguments against a default value were that the optimal value depends on the filesystem on the host. This is, AFAICT, only in part true. (It seems some backends are filesystem agnostic.) Also, docker itself uses a default storage driver, "devicemapper", when no --storage-driver=x options are given. Hence, we use the same value as default. Add a FIXME comment that 'devicemapper' breaks NixOS VM tests (for yet unknown reasons), so we still run those with the 'overlay' driver. Closes #10100 and #10217.
2015-09-04docker: Minor improvements, fix failing testRagnar Dahlén
- Replace usage of deprecated CLI flag `--daemon` - Introduce `storageDriver` option for module - Fix failing test by using `overlay` storage driver
2015-07-12all tests: added meta.maintainers sectionJoachim Schiele
2015-07-05nixos docker: fix service and testLuca Bruno
2014-12-01nixos/docker: fix module, add simple testJaka Hudoklin