Skip to content

Instantly share code, notes, and snippets.

@stephaneerard
Created March 26, 2021 11:45
Show Gist options
  • Select an option

  • Save stephaneerard/d4d7bfaaaf1f60f47ff56b04e4390351 to your computer and use it in GitHub Desktop.

Select an option

Save stephaneerard/d4d7bfaaaf1f60f47ff56b04e4390351 to your computer and use it in GitHub Desktop.
PS C:\code\\platform_i1\Docker> docker context create --docker "host=ssh://vagrant@vdi-00-dev-00" vdi00dev00
vdi00dev00
Successfully created context "vdi00dev00"
PS C:\code\\platform_i1\Docker> docker context use vdi00dev00
vdi00dev00
Current context is now "vdi00dev00"
PS C:\code\\platform_i1\Docker> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e7b0cfe38f90 hello-world "/hello" 5 minutes ago Exited (0) 5 minutes ago sad_hamilton
90d6ede8d698 hello-world "/hello" 14 minutes ago Exited (0) 14 minutes ago distracted_banzai
PS C:\code\\platform_i1\Docker> docker-compose up -d
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 670, in urlopen
File "urllib3\connectionpool.py", line 426, in _make_request
File "<string>", line 3, in raise_from
File "urllib3\connectionpool.py", line 421, in _make_request
File "http\client.py", line 1349, in getresponse
File "http\client.py", line 935, in close
File "docker\transport\sshconn.py", line 102, in close
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "requests\adapters.py", line 439, in send
File "urllib3\connectionpool.py", line 726, in urlopen
File "urllib3\util\retry.py", line 410, in increment
File "urllib3\packages\six.py", line 734, in reraise
File "urllib3\connectionpool.py", line 670, in urlopen
File "urllib3\connectionpool.py", line 426, in _make_request
File "<string>", line 3, in raise_from
File "urllib3\connectionpool.py", line 421, in _make_request
File "http\client.py", line 1349, in getresponse
File "http\client.py", line 935, in close
File "docker\transport\sshconn.py", line 102, in close
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError(22, 'Invalid argument'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker\api\client.py", line 214, in _retrieve_server_version
File "docker\api\daemon.py", line 181, in version
File "docker\utils\decorators.py", line 46, in inner
File "docker\api\client.py", line 237, in _get
File "requests\sessions.py", line 543, in get
File "requests\sessions.py", line 530, in request
File "requests\sessions.py", line 643, in send
File "requests\adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', OSError(22, 'Invalid argument'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose\cli\main.py", line 80, in main
File "compose\cli\main.py", line 189, in perform_command
File "compose\cli\command.py", line 60, in project_from_options
File "compose\cli\command.py", line 152, in get_project
File "compose\cli\docker_client.py", line 41, in get_client
File "compose\cli\docker_client.py", line 170, in docker_client
File "docker\api\client.py", line 197, in __init__
File "docker\api\client.py", line 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', OSError(22, 'Invalid argument'))
[5964] Failed to execute script docker-compose
PS C:\code\\platform_i1\Docker>
PS C:\code\\platform_i1\Docker> docker info
Client:
Debug Mode: false
Plugins:
scan: Docker Scan (Docker Inc., v0.5.0)
buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
Server:
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 1
Server Version: 19.03.9
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: systemd
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.19.0-9-amd64
Operating System: Debian GNU/Linux 10 (buster)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.948GiB
Name: vdi-00-dev-00
ID: XPN7:SAOW:LQQI:L2UA:NPNG:QIQF:FGZW:GET5:O55G:3H2H:WS3E:IP5T
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: API is accessible on http://0.0.0.0:2375 without encryption.
Access to the remote API is equivalent to root access on the host. Refer
to the 'Docker daemon attack surface' section in the documentation for
more information: https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
WARNING: No swap limit support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment