dvddarias / rdocker Goto Github PK
View Code? Open in Web Editor NEWSecurely control a remote docker daemon CLI using ssh forwarding, no SSL setup needed.
License: MIT License
Securely control a remote docker daemon CLI using ssh forwarding, no SSL setup needed.
License: MIT License
My server doesn't support password login so I cannot use rdocker with a password. It doesn't support using a private key, thought.
When connecting via rdocker (from mac), the following error occur:
$ rdocker ddddddocker.aaa.com
Warning: Permanently added '[hammer-bld-00.sbg1-ovh.hskillz.net]:60022,[167.114.246.105]:60022' (RSA) to the list of known hosts.
Local docker client connected to ddddddocker.aaa.com docker daemon.
Route: localhost:53549 -> ddddddocker.aaa.com:42998
Press Ctrl+D to stop forwarding and exit the bash session.
docker:ddddddocker.aaa.com
$ docker ps -a
error during connect: Get https://localhost:53549/v1.26/containers/json?all=1: http: server gave HTTP response to HTTPS client
Not sure if this is an rdocker induced problem, or if I need to add some configuration to the remote docker service (currently 1.13.1 on ubuntu 16.04).
Thx
Would it be possible to make this script usable in another script? Currently this is hard, as you'd need a way to trigger the termination at the end.
The port forwarding on the remote host does not work on python3 only servers like (16.04).
rdocker [email protected] -v
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
usage: mkfifo [-m mode] fifoname ...
/usr/local/bin/rdocker: line 120: $PIPE: ambiguous redirect
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
/usr/local/bin/rdocker: line 128: read: 3: invalid file descriptor: Bad file descriptor
/usr/local/bin/rdocker: line 125: 3: Bad file descriptor
I know you said the remote user needs to have permissions for the docker socket, but could this be changed to work if we need sudo on the remote host ?
I'm running rdocker.sh
on Ubuntu 16.04 under WSL. I'm running against an Alpine Linux 3.7 host. It seems to work in most cases, however when attempting to run an interactive command, I get the error tls: oversized record received with length 20527
. For example:
docker:root@alpine ben@DESKTOP-L06DUSH:~/rdocker$ docker run -it alpine ash
tls: oversized record received with length 20527
Whilst docker run alpine
will complete successfully and running any command on the Alpine Linux server itself also works. Any ideas?
For example we have 1 docker host, and 2 users, both want to use rdocker.
when 1st come to host - script will create a /tmp/rdocker-forwarder.py with user1 permissions. (644 in my case)
then 2nd, takes permission denied while trying to overwrite it.
My fix is to inject username to /tmp/rdocker-$USER-forwarder.py name.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.