Alpine: lxc-attach in limited environment (missing commands)

I’m running an unprivileged alpine-linux-x64-edge container started as non-root user.

When i do an lxc-attach -n alpine i land in some kind of emergency or recovery ash shell with a very limited busybox(?) binary. Commands like help and exit exist but not ls. PS1 is #/ only.

/ # help
Built-in commands:
	. : [ [[ alias bg break cd chdir command continue echo eval exec
	exit export false fg getopts hash help history jobs kill let
	local printf pwd read readonly return set shift source test times
	trap true type ulimit umask unalias unset wait

If i start up the container with lxc-attach -n alpine -F everything is fine. lxc-console is good as well.

When i do an env it shows my local users (host) environment. That doesn’t belong into the container.

Any idea what’s wrong here?

Arch Linux 5.5.6
lxc v3.2.1

$ cat /etc/subuid

$ cat /etc/subgid

~/.config/lxc/default.conf = empty
lxc.idmap = u 0 100000 65536
lxc.idmap = g 0 100000 65536 = veth = lxcbr0 = up = 00:16:3e:xx:xx:xx

The “inherited” environment seems to be intended behavior:

$ lxc-attach --help
      --keep-env    Keep all current environment variables. This
                    is the current default behaviour, but is likely to
                    change in the future.

And the reason why i only have a limited command set is that my PATH env variable doesn’t hold any /bin path where Alpine’s commands reside.