-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Setup
stacker.yaml
first:
from:
type: docker
url: docker://centos:latest
uid and gid maps:
$ cat /etc/subuid
amiculas:100000:65536
$ cat /etc/subgid
amiculas:100000:65536
Issue
Running as regular user:
$ ./stacker --debug build --layer-type=squashfs
stacker version 52ab507fc074e0b51b9b860eae0f6e36092aa4db
usernsexec-ing [usernsexec u 0 1000 1 1 100001 65535 g 0 1000 1 1 100001 65535 -- /home/amiculas/work/stacker/stacker --internal-userns --debug build --layer-type=squashfs]
stacker version 52ab507fc074e0b51b9b860eae0f6e36092aa4db
initializing stacker recipe: stacker.yaml
substituting $STACKER_ROOTFS_DIR to /home/amiculas/work/stacker/roots
substituting $STACKER_STACKER_DIR to /home/amiculas/work/stacker/.stacker
substituting $STACKER_OCI_DIR to /home/amiculas/work/stacker/oci
stacker build order:
0 build /home/amiculas/work/stacker/stacker.yaml: requires: []
building: 0 /home/amiculas/work/stacker/stacker.yaml
substituting $STACKER_ROOTFS_DIR to /home/amiculas/work/stacker/roots
substituting $STACKER_STACKER_DIR to /home/amiculas/work/stacker/.stacker
substituting $STACKER_OCI_DIR to /home/amiculas/work/stacker/oci
Dependency Order [base a b c]
error: invalid image detected
read oci-layout
github.com/opencontainers/umoci/oci/cas/dir.(*dirEngine).validate
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/oci/cas/dir/dir.go:111
github.com/opencontainers/umoci/oci/cas/dir.Open
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/oci/cas/dir/dir.go:407
github.com/opencontainers/umoci.OpenLayout
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/api.go:30
github.com/project-stacker/stacker.(*Builder).build
/stacker-tree/build.go:296
github.com/project-stacker/stacker.(*Builder).BuildMultiple
/stacker-tree/build.go:547
main.doBuild
/stacker-tree/cmd/build.go:112
github.com/urfave/cli.HandleAction
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:524
github.com/urfave/cli.Command.Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/command.go:173
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:277
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
validate
github.com/opencontainers/umoci/oci/cas/dir.Open
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/oci/cas/dir/dir.go:408
github.com/opencontainers/umoci.OpenLayout
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/api.go:30
github.com/project-stacker/stacker.(*Builder).build
/stacker-tree/build.go:296
github.com/project-stacker/stacker.(*Builder).BuildMultiple
/stacker-tree/build.go:547
main.doBuild
/stacker-tree/cmd/build.go:112
github.com/urfave/cli.HandleAction
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:524
github.com/urfave/cli.Command.Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/command.go:173
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:277
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
open CAS
github.com/opencontainers/umoci.OpenLayout
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/api.go:32
github.com/project-stacker/stacker.(*Builder).build
/stacker-tree/build.go:296
github.com/project-stacker/stacker.(*Builder).BuildMultiple
/stacker-tree/build.go:547
main.doBuild
/stacker-tree/cmd/build.go:112
github.com/urfave/cli.HandleAction
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:524
github.com/urfave/cli.Command.Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/command.go:173
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:277
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
error: exit status 1
github.com/project-stacker/stacker/container.MaybeRunInUserns
/stacker-tree/container/userns.go:90
main.main.func3
/stacker-tree/cmd/main.go:298
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:264
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
Running as root:
$ sudo ./stacker --debug build
stacker version 52ab507fc074e0b51b9b860eae0f6e36092aa4db
No uid mappings, running as root
stacker version 52ab507fc074e0b51b9b860eae0f6e36092aa4db
initializing stacker recipe: stacker.yaml
substituting $STACKER_ROOTFS_DIR to /home/amiculas/work/stacker/roots
substituting $STACKER_STACKER_DIR to /home/amiculas/work/stacker/.stacker
substituting $STACKER_OCI_DIR to /home/amiculas/work/stacker/oci
stacker build order:
0 build /home/amiculas/work/stacker/stacker.yaml: requires: []
building: 0 /home/amiculas/work/stacker/stacker.yaml
substituting $STACKER_ROOTFS_DIR to /home/amiculas/work/stacker/roots
substituting $STACKER_STACKER_DIR to /home/amiculas/work/stacker/.stacker
substituting $STACKER_OCI_DIR to /home/amiculas/work/stacker/oci
Dependency Order [first]
error: invalid image detected
read oci-layout
github.com/opencontainers/umoci/oci/cas/dir.(*dirEngine).validate
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/oci/cas/dir/dir.go:111
github.com/opencontainers/umoci/oci/cas/dir.Open
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/oci/cas/dir/dir.go:407
github.com/opencontainers/umoci.OpenLayout
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/api.go:30
github.com/project-stacker/stacker.(*Builder).build
/stacker-tree/build.go:296
github.com/project-stacker/stacker.(*Builder).BuildMultiple
/stacker-tree/build.go:547
main.doBuild
/stacker-tree/cmd/build.go:112
github.com/urfave/cli.HandleAction
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:524
github.com/urfave/cli.Command.Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/command.go:173
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:277
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
validate
github.com/opencontainers/umoci/oci/cas/dir.Open
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/oci/cas/dir/dir.go:408
github.com/opencontainers/umoci.OpenLayout
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/api.go:30
github.com/project-stacker/stacker.(*Builder).build
/stacker-tree/build.go:296
github.com/project-stacker/stacker.(*Builder).BuildMultiple
/stacker-tree/build.go:547
main.doBuild
/stacker-tree/cmd/build.go:112
github.com/urfave/cli.HandleAction
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:524
github.com/urfave/cli.Command.Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/command.go:173
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:277
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
open CAS
github.com/opencontainers/umoci.OpenLayout
/stacker-tree/.build/gopath/pkg/mod/github.com/opencontainers/umoci@v0.4.8-0.20220412065115-12453f247749/api.go:32
github.com/project-stacker/stacker.(*Builder).build
/stacker-tree/build.go:296
github.com/project-stacker/stacker.(*Builder).BuildMultiple
/stacker-tree/build.go:547
main.doBuild
/stacker-tree/cmd/build.go:112
github.com/urfave/cli.HandleAction
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:524
github.com/urfave/cli.Command.Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/command.go:173
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:277
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
error: exit status 1
github.com/project-stacker/stacker/container.MaybeRunInUserns
/stacker-tree/container/userns.go:26
main.main.func3
/stacker-tree/cmd/main.go:298
github.com/urfave/cli.(*App).Run
/stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli@v1.22.5/app.go:264
main.main
/stacker-tree/cmd/main.go:303
runtime.main
/usr/lib/go/src/runtime/proc.go:250
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1594
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels