-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
area/runtimeRuntimeRuntime
Description
One again, i am on my upstart-related bunch of issues while putting the stuff in a docker container, so i think it would be good to have a meta bug for upstart issues and a starter for further documentation.
For now:
- configuration of container is not that editable after start (ports, volumes), see Changeable/Editable volumes / ports #2045
- you need to tweak a bit some jobs, disable others, and emit some virtual events, see along Dockerfiles and shipped with upstart jobs & scripts
- FIXED in "master: restart/reboot/poweroff from within the container won't work unless we keep sys_boot lxc CAP, the only mean to kill/restart if from a docker restart/kill/stop call, see init system issues with shutdown/reboot #1960
- docker top doesnt show any process even if the container is running and well. Indeed when you ssh'in the container, processes are there up and running., see Container started with upstart init wont show anything in docker top #2277
- /etc/hostname & /etc/resolv.conf as they are mounted-readonly are also problematic (status of /etc/hosts and hostname as readwrite (writable) #2068)
- Some base packages wont install/update either because of CAPS or ReadOnly Files. We repackage them on the fly in the dockerfile and mark them as non upgradable.
- resolvconf
- ntp
- fuse
- ntpd from container hit apparmor breakage from host, see : ntpd from ubuntu container is blocked from the host (ubuntu) apparmor policy (surely an aufs+apparmor bug) #2800
To reproduce all this stuff, you can find my debug env here:
- https://github.com/makinacorpus/vms/blob/master/docker/make.sh : this shell help makes images from ubuntu cloudarchives images, plus some modifications (see dockerfiles) to run smoothly on docker.
- notice : https://github.com/makinacorpus/vms/blob/master/docker/makinacorpus/ubuntu_template/lxc-setup.conf
- notice : https://github.com/makinacorpus/vms/blob/master/docker/makinacorpus/ubuntu_template/lxc-stop.conf
- notice : https://github.com/makinacorpus/vms/blob/master/docker/makinacorpus/ubuntu_template/lxc-cleanup.sh
Use the script like this:
git clone https://github.com/makinacorpus/vms.git
cd docker
./make.sh make_image ubuntu
then run it:
docker run -d makinacorpus/ubuntu /sbin/init
docker ps
./make.sh dattach $dockerid
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/runtimeRuntimeRuntime