New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu/Upstart issues as a container/full machine #2276
Comments
Would love to know what you tweaked; I just spent some time trying to get upstart to work, and here's what I found:
|
Look the makinacorpus/ubuntu dockerfile or even play, i do not run it privileged. Did you noticed in the other bugs that we have a nearly working vm after the tweaks (left the reboot/stop & ro files & docker top problems) |
/cc @joshk |
note to myself: replace getty by the ln tty in console.conf |
|
nice work @kiorky
manualy building in
works, but attaching fails:
as well, connecting to ssh does not work. assuming that docker top is working correctly, there is nothing running in the container exept /sbin/init
has it to do whith /sbin/init not running as PID 1? host: debian jessie, |
ping @tianon I believe that we can close this issue now because we have an official ubuntu-upstart image that works. Can you confirm? |
I think so, but I believe @kiorky disagrees? |
Exactly,@tianon i disagree:), having upstart begin to work does not make a real system work smoothly, all the subparts and linked bugs must also be addressed for this one to be fully solved. |
@tianon, as i gave up the docker frond a bit, can you give me a pointer to the official ubuntu-upstart image build scripts for me to give a shot please. I hope i wont see any dpkg-divert things for initctl in there ;) The problem with a full vmcontainer is that the initsystem is 50% of it but you need all the other bugs to be addressed, like the uplevel network/firewalls ones and the DNS ones (for resolv.conv & other readonly files) |
Just for reference: https://github.com/phusion/baseimage-docker |
I really dislike phusion approach, for reference. |
We, for the moment are still waiting for @dotcloud to work on the linked bugs ;) |
+1. I was hoping to also use docker as well instead of LXC. Mainly so that the provisioning scripts and everything can be reused for Packer. Packer can then produce Docker and Vagrant images for our development and staging, and Docker and/or EC2 for production images... for some reason Packer does not support LXC directly and still refuses to support it officially. Docker still seems more suitable for shippable images, not long running "instances" like a VPS would provide (KVM, Xen, LXC, OpenVZ, etc) |
what is the actionable item here? |
ping @kiorky ^ |
See all open bugs ? |
(Plus the ones closes without fixing, like the ntp one) |
can we close this now |
well this isnt fixed ;) |
I tried using
Can you help me out in debugging this. I am starting the container like this:
|
@pradeepchhetri by running If you start it without a custom command, ssh will be running and you can login using the default password docker run -d -it -p 2200:22 ubuntu-upstart:14.04
efd1555328e2034cb8a237a46798ec4a5a4fccd2da3d8518add1bf7aaeda2029
ssh root@192.168.99.100 -p 2200
The authenticity of host '[192.168.99.100]:2200 ([192.168.99.100]:2200)' can't be established.
RSA key fingerprint is 5b:e5:be:07:05:47:06:2a:f8:8d:42:4a:50:3c:61:ca.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[192.168.99.100]:2200' (RSA) to the list of known hosts.
root@192.168.99.100's password:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.19.0-31-generic x86_64)
.... |
@thaJeztah Ahh, thank you for the reply. I want to run a curl command after container starts which will install a package that depends on upstart. Should i first ssh and then execute the command on it ? |
@pradeepchhetri why not build an image using a Dockerfile that uses FROM ubuntu-upstart:14.04
RUN apt-get update && apt-get install something However, the GitHub issue tracker is not the best place to discuss this; can you ask this question in the #docker IRC channel? There's probably someone there to help you further. |
@thaJeztah do you know what's going on here? I'm certainly not :/ |
Given the activity level on this issue, I'm going to close it as it's either fixed, a duplicate or not a request anymore. If you think I'm mistaken, feel free to discuss it there 😉 |
Add destination stats extraction to IPVS library
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:
To reproduce all this stuff, you can find my debug env here:
Use the script like this:
then run it:
dups: #1024
links:#3182
The text was updated successfully, but these errors were encountered: