Comments (2)
This seems to be due to the default SELinux policy for a Fedora system which includes:
$ sudo semanage fcontext -l | grep ptmx
/dev/ptmx character device system_u:object_r:ptmx_t:s0
This omits the Symlink that replaces the character device. The following resolves the condition in my testing:
$ sudo semanage fcontext -a -f l -t ptmx_t /dev/ptmx
I would recommend:
$ diff -up docker.fc.bak docker.fc
--- docker.fc.bak 2016-03-08 11:33:38.894580384 -0500
+++ docker.fc 2016-03-08 11:33:52.348740405 -0500
@@ -1,5 +1,7 @@
/root/.docker gen_context(system_u:object_r:docker_home_t,s0)+/dev/ptmx -l gen_context(system_u:object_r:ptmx_t:s0)
+
/usr/bin/docker -- gen_context(system_u:object_r:docker_exec_t,s0)/usr/lib/systemd/system/docker.service -- gen_context(system_u:object_r:docker_unit_file_t,s0)
Ninja edit>
Had to edit the above so that the correct "ptmx_t" context was included in the patch.
- Kyle
from runc.
moby/moby#21808 is hitting this issue again.
#96 (comment) introduced setupDev := len(config.Devices) != 0
for this issue.
runc/libcontainer/rootfs_linux.go
Line 56 in 55aabc1
But I'm not sure there is any path that sets setupDev
to false
, because config.Devices
seems to be always set to non-empty(3baae2d, #536) in spec_linux.go: createDevices()
.
createDevices
:runc/libcontainer/specconv/spec_linux.go
Line 456 in 6c88a52
CreateLibcontainerConfig
:runc/libcontainer/specconv/spec_linux.go
Line 200 in 6c88a52
createContainer
:Line 178 in 6c88a52
startContainer
:Line 118 in 6c88a52
from runc.
Related Issues (20)
- Some namespace path joining errors together with user ns HOT 3
- FileLog Pipeline Not Closed, Causing runc exec to Hang HOT 2
- runc can not wait process in the container exits when share pid namespace HOT 4
- Reasons that can't use runc-dmz
- flaky test: kill KILL [host pidns] HOT 8
- flaky test: check_cpu_* HOT 1
- [ci] We should check `memory.swap.max` exists or not for cgroupv2 HOT 1
- Building runc 1.1.11 causes
- runc-dmz masks the error from unix.SYS_EXECVEAT HOT 12
- writing sync procError: write sync: file already closed
- `--manage-cgroups-mode` can not be `ignore` when checkpoint and restore containers HOT 5
- BPF programs installed by libcontainer are not distinguished
- Kubelet fails to invoke runc to delete residual cgroup resources in pods. HOT 4
- racy RLIMIT_NOFILE setting with Go 1.19+ HOT 13
- vagrant up is not working in Cirrus CI HOT 4
- Seems like a typo, the .PHONY label has no purpose this way HOT 3
- runc update will clear cpu burst value HOT 3
- runc update: cpu period and cpu burst being reset to defaults after an unrelated update HOT 8
- runc init hang up HOT 1
- runc doesn't work with go1.22 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runc.