Comments (7)
Had a similar issue today and it turned out to be a typo and permissions on the /var/run/docker.sock and in your case it could be permissions too. Try changing the volume flag to:
-v /var/run/docker.sock:/var/run/docker.sock:Z
That should setup SELinux permissions correctly if that happens to be the issue.
from docker-ssh.
does the sshd service need to be running on the container?
from docker-ssh.
Are you running Docker on Windows? If so check #7.
from docker-ssh.
I have the same issue on ubuntu the client and on the server and logs return:
/src/src/session-handler-factory.coffee:156
stream.on('data', function(data) {
^
TypeError: Cannot read property 'on' of null
at Object.callback (/src/src/session-handler-factory.coffee:79:19)
at /src/node_modules/dockerode/lib/exec.js:39:10
at Modem.buildPayload (/src/node_modules/docker-modem/lib/modem.js:225:19)
at ClientRequest.<anonymous> (/src/node_modules/docker-modem/lib/modem.js:210:10)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at writeAfterEndNT (_http_outgoing.js:486:8)
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
from docker-ssh.
+1
Darwin mbp-user 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Docker version 1.13.0, build 49bf474
from docker-ssh.
@mgomma i had the same issue, building the dockerfile in this git repository again resolved the issue
Also i had to quote this with single quotes FILTERS={\"name\":[\"^/my-container$\"]}
The full command
docker run -e 'FILTERS={\"name\":[\"^/my-container$\"]}' -e AUTH_MECHANISM=simpleAuth -e AUTH_USER=sshd -e AUTH_PASSWORD=1234 --name sshd -p 2222:22 --rm -v /var/run/docker.sock:/var/run/docker.sock docker-ssh
Note during the build i encountered the following warnings:
> [email protected] install /usr/src/app/node_modules/dtrace-provider
> node scripts/install.js
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 209 packages in 5.672s
npm WARN using --force I sure hope you know what you are doing.
This works on Docker For Windows
Version: 18.05.0-ce-rc1
API version: 1.37
Go version: go1.9.5
Git commit: 33f00ce
Built: Thu Apr 26 00:57:53 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.05.0-ce-rc1
API version: 1.37 (minimum version 1.12)
Go version: go1.10.1
Git commit: 33f00ce
Built: Thu Apr 26 01:06:49 2018
OS/Arch: linux/amd64
Experimental: true```
from docker-ssh.
hi all,
i got this kind of error too.
I forget that to installed the "bash" into the objective container, eg. in alpine image, "apk add bash".
from docker-ssh.
Related Issues (20)
- How to get this to work with latest Alpine image? HOT 1
- TypeError: Cannot read property 'length' of undefined HOT 4
- id_rsa is a private key... HOT 3
- Why is there a private RSA key in this repository? HOT 1
- tcp forwarding is not allowed
- error: Forever detected script exited with code: 1
- Does publicKey authentication work for Web Terminal also?
- Why is container deprecated
- Commented authorized_keys file bug
- Malformed packet error with x2goclient
- Type error: resizeTerm is not a function HOT 2
- closed by remote host HOT 7
- Usage as a reverse ssh tunnel HOT 1
- Webconsole timeout
- invalid reference format: repository name must be lowercase
- Is there a Fork which has evolved further? HOT 1
- Web terminal not working HOT 1
- Works but issues errors
- VSCode and Remote-SSH Extension HOT 1
- Is this unmaintained
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-ssh.