docker 在centos中运行的一个问题

【字号: 日期:2023-02-17浏览:20作者:雯心

问题描述

centos上docker中运行hello-world是出现如下问题,急求啊!

panic: standard_init_linux.go:178: exec user process caused 'permission denied' [recovered]panic: standard_init_linux.go:178: exec user process caused 'permission denied'

goroutine 1 [running, locked to thread]:panic(0x6f3000, 0xc4201385b0)

/usr/lib/golang/src/runtime/panic.go:500 +0x1a1

github.com/urfave/cli.HandleAction.func1(0xc420083748)

/builddir/build/BUILD/docker-96d83a5ff6ec0eb9bb7b45192c3048fd3aef5e21/runc-81b254244390bc636b20c87c34a3d9e1a8645069/Godeps/_workspace/src/github.com/urfave/cli/app.go:478 +0x247

panic(0x6f3000, 0xc4201385b0)...

问题解答

回答1:

所以说题主应该解决了。

是selinux的问题。

回答2:

'permission denied' 权限不够? 你试下: sudo docker run hello world

相关文章: