Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Unable to find image '/dev/null:/portforward:ro' locally #12

Closed
helderco opened this issue Oct 9, 2014 · 3 comments
Closed

Unable to find image '/dev/null:/portforward:ro' locally #12

helderco opened this issue Oct 9, 2014 · 3 comments

Comments

@helderco
Copy link

helderco commented Oct 9, 2014

Hi, when I run dockersh I get this error:

could not start container: exit status 1:
Unable to find image '/dev/null:/portforward:ro' locally
2014/10/09 13:50:25 Invalid namespace name (), only [a-z0-9_] are allowed, size between 4 and 30

I'm running Ubuntu 14.04.1 LTS with:

Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.3.1
Git commit (client): fa7b24f
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.3.1
Git commit (server): fa7b24f

Just installed dockersh from dockerhub.

@helderco
Copy link
Author

Hi, I just tried the latest version and now I'm getting this:

$ ssh myuser@myhost
Error starting shell in new container: Cannot find your shell /bin/bash inside your container
Connection to myhost closed.

This is my /etc/dockersh:

[dockersh]
imagename = ubuntu:trusty
shell = /bin/bash
mounthome

If I use your example with busybox and ash, it works. Do the images need something special configured? How isn't /bin/bash found in ubuntu:trusty? It is there.

Thanks.

@bobtfish
Copy link
Contributor

Is your container already running? I.e. if you start a persistent container with busybox, and then change the config to ubuntu:trusty?

dockersh won't automatically recycle the container for you - you'll need to manually docker kill youruser_dockersh ; docker rm youruser_dockersh to get a new container with the new OS started

@helderco
Copy link
Author

Oh, maybe that's what happened. I just tried with no running containers and it worked. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants