Given the following block:
config.vm.provider "docker" do |d|
d.image = "centos:6"
end
and the following command:
vagrant up --provider=docker
I get the following error:
Error response from daemon: No command specified
Since the machine is down asking for logs through vagrant docker-logs crashes so I have no clue how to debug this.
Hope someone can shed some light on this. Googling hasn't helped me much so far.
Best,
Dirk
--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/VqXBSaEXBdU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
MAINTAINER Alvaro Miranda kik...@gmail.com
RUN sed -i -e 's/session\s*required\s*pam_loginuid.so$/session optional\tpam_loginuid.so/' /etc/pam.d/sshd && \
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ori && \
sed -i -e '/#UseDNS yes/a UseDNS no' /etc/ssh/sshd_config && \
cp /etc/sudoers /etc/sudoers.orig && \
sed -i -e 's/Defaults\\s*requiretty$/#Defaults\trequiretty/' /etc/sudoers && \
sed -i -e '/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/a %wheel\tALL=(ALL)\tNOPASSWD: ALL' /etc/sudoers
RUN useradd vagrant && \
mkdir ~vagrant/.ssh && \
chmod 700 ~vagrant/.ssh && \
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key' | tee -a ~vagrant/.ssh/authorized_keys && \
chmod 600 ~vagrant/.ssh/authorized_keys && \
chown -R vagrant: ~vagrant/.ssh && \
sed -i -e '/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/a vagrant\tALL=(ALL)\tNOPASSWD: ALL' /etc/sudoers
That is all you require to enable ssh to work inside a docker and get vagrant user plus ssh key
Then you can have
EXPOSE 22
CMD /usr/sbin/sshd -D
/usr/sbin/sshd -D