-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cannot start container on boot2docker #2
Comments
Is the command "docker run -i -t -p 11111 ubuntu:12.04 /bin/bash" successfully? |
Seems when I installed boot2docker 1.1.1 over an existing 1.0.1 installation things got funky. I completely removed all traces of boot2docker and re-installed 1.1.1. Next I used docker pull to fetch your container from docker hub registry. Finally I tried to start up. This is what I saw... docker@boot2docker:~$ docker run -i -t -p 6080:6080 dorowu/ubuntu-desktop-lxde-vnc Great I thought. Let me try to hit w/ browser from my desktop. Opened Firefox and browsed to http://127.0.0.1:6080/vnc.html Nothing! boot2docker does not make any other port but 22 available. But, a look here, gave me what I needed... https://github.com/boot2docker/boot2docker/blob/master/doc/WORKAROUNDS.md So I Iaunched boot2docker w/ boot2docker ssh -L 6080:localhost:6080 and then I was able to visit http://127.0.0.1:6080/vnc.html, authenticate, and work with container. Thanks! (Just a thought... you might want to enhance your instructions to point the above out). |
Thank you for reporting the solution! 👍 helped a lot! |
Another way would be to simply use the boot2docker ip instead of your localhost one:
|
Hi, im trying to "su" to root user, but i dont see where the passwort for root is given! how can i get root access? |
Please use sudo. Default password is "ubuntu" |
Thanks Works perfect!! |
Hi, i want to change the password of the "ubuntu" user and the changes should be persistent after stopping the container. Can I change the default user to another one? I want to mount a drive from the Host, but i can only set a mountpoint by creating a new instance, do you know how i can customise that with a running container? |
Hi, excuse me. I run it successfuly in my computer, but when i close the web tab, after some minutes i reopen the url, the running programme (Baiduyunpan for linux) is closed and i sound reopen it. How could i close the web tab but remain programes running? |
Hi, how to run gazebo in container generated by this image please? |
I'm running Windows 7.
I downloaded and installed boot2docker 1.1.1.
I executed boot2docker ssh
I pulled your image with
docker pull
Next is a series of commands and output
docker@boot2docker:
/devbox/sts$ docker version/devbox/sts$ docker imagesClient version: 1.0.1
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 990021a
Server version: 1.0.1
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): 990021a
docker@boot2docker:
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
fans/sts-base latest c09dbe15c9d7 About an hour ago 1.936 GB
centos centos7 1a7dc42f78ba 9 days ago 236.4 MB
centos latest 1a7dc42f78ba 9 days ago 236.4 MB
svendowideit/samba latest 06d5f1237cf3 9 days ago 273.7 MB
ubuntu 12.04 ea7d6801c538 3 weeks ago 127.5 MB
phusion/baseimage latest dabfc8a44cb5 3 weeks ago 421.6 MB
ubuntu latest e54ca5efa2e9 4 weeks ago 276.5 MB
busybox latest a9eb17255234 6 weeks ago 2.433 MB
dorowu/ubuntu-desktop-lxde-vnc latest 15b04390c9f1 7 weeks ago 858.9 MB
docker@boot2docker:
/devbox/sts$ docker run -t -i -p 6080:6080 15b04390c9f1/devbox/sts$ docker ps -a2014/07/18 22:58:11 Error response from daemon: Cannot start container 1e7b0c0f66678c3a23117d5c90561ff56ed21e7be9af4edcbdf43545460f613b: /mnt/sda1/var/lib/docker/aufs/mnt/1e7b0c0f66678c3a23117d5c90561
ff56ed21e7be9af4edcbdf43545460f613b is not within /mnt/sda1/var/lib/docker/aufs/mnt/1e7b0c0f66678c3a23117d5c90561ff56ed21e7be9af4edcbdf43545460f613b
docker@boot2docker:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1e7b0c0f6667 dorowu/ubuntu-desktop-lxde-vnc:latest /startup.sh 4 seconds ago sick_bohr
6bd235b0c6ea dorowu/ubuntu-desktop-lxde-vnc:latest /startup.sh 21 minutes ago romantic_poincare
44c5bcacd4d5 fans/sts-base:latest /startup.sh /sbin/my About an hour ago hungry_euclid
866aa3d16904 busybox:latest echo test About an hour ago Exited (0) About an hour ago sick_hoover
docker@boot2docker:~/devbox/sts$
Can you explain why I'm getting an error on startup? Is this a bug in boot2docker? Should I even attempt to run docker under boot2docker?
The text was updated successfully, but these errors were encountered: