在Docker容器里编译Mesos报错


主机环境:CentOS 7(3.10.0-229.el7.x86_64)+Docker 1.7
容器镜像:CentOS 7
Mesos版本:Mesos-0.21.1
问题描述:前面的run都是OK就下面这个RUN,出现错误。
RUN      ] CpuIsolatorTest/1.UserCpuUsage
F1027 07:17:05.656836 21669 isolator_tests.cpp:148] CHECK_SOME(isolator): Failed to prepare hierarchy for cpu subsystem: Failed to mount cgroups hierarchy at '/sys/fs/cgroup/cpu': 'cpu' is already attached to another hierarchy 
*** Check failure stack trace: ***
@     0x7f323f41ae0a  google::LogMessage::Fail()
@     0x7f323f41ad69  google::LogMessage::SendToLog()
@     0x7f323f41a77a  google::LogMessage::Flush()
@     0x7f323f41d4ae  google::LogMessageFatal::~LogMessageFatal()
@           0x9039a6  _CheckFatal::~_CheckFatal()
@           0xcc636b  CpuIsolatorTest_UserCpuUsage_Test<>::TestBody()
@          0x10e4d6c  testing::internal::HandleSehExceptionsInMethodIfSupported<>()
@          0x10dfec2  testing::internal::HandleExceptionsInMethodIfSupported<>()
@          0x10c823b  testing::Test::Run()
@          0x10c895e  testing::TestInfo::Run()
@          0x10c8ee6  testing::TestCase::Run()
@          0x10cdc62  testing::internal::UnitTestImpl::RunAllTests()
@          0x10e5bdd  testing::internal::HandleSehExceptionsInMethodIfSupported<>()
@          0x10e0bb3  testing::internal::HandleExceptionsInMethodIfSupported<>()
@          0x10ccb12  testing::UnitTest::Run()
@           0xd41d85  main
@     0x7f3239888af5  __libc_start_main
@           0x8ece39  (unknown)
make: ***  Aborted (core dumped)
make: Leaving directory `/usr/local/mesos-0.21.1/build/src'
make: ***  Error 2
make: Leaving directory `/usr/local/mesos-0.21.1/build/src'
make: ***  Error 2
make: Leaving directory `/usr/local/mesos-0.21.1/build/src'
make: ***  Error 1 
已邀请:

aaron3323

赞同来自:


和你一样的错,解决了吗?

xds2000 - 数人科技CTO

赞同来自:


Failed to mount cgroups hierarchy at '/sys/fs/cgroup/cpu': 'cpu' is already attached to another hierarchy

看看这里。

要回复问题请先登录注册