Skip to content

Commit

Permalink
Merge pull request #48 from simondeziel/docker-lxd-init
Browse files Browse the repository at this point in the history
tests/docker: init LXD before using it
  • Loading branch information
tomponline authored Dec 11, 2023
2 parents ad3e40d + fe0484c commit db3737c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/docker
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/sh
set -eux

CNAME="docker-$$"

# Install LXD
install_lxd

# Configure LXD
lxd init --auto

CNAME="docker-$$"

# Create the container
lxc launch ubuntu-daily:22.04 "${CNAME}" -c security.nesting=true "$@"

Expand Down

0 comments on commit db3737c

Please sign in to comment.