Skip to content

Instantly share code, notes, and snippets.

@muzi502
Created August 14, 2021 11:24
Show Gist options
  • Save muzi502/a67a6d674d572ea9f9007fe6858e8169 to your computer and use it in GitHub Desktop.
Save muzi502/a67a6d674d572ea9f9007fe6858e8169 to your computer and use it in GitHub Desktop.
docker-cli
# Create a docker context use ssh
╭─reimu@macbook ~
╰─$ docker context create us-oracle-arm --docker "host=ssh://arm3"
us-oracle-arm
Successfully created context "us-oracle-arm"
# Set default context for docker-cli
╭─reimu@macbook ~
╰─$ docker context use us-oracle-arm
us-oracle-arm
Current context is now "us-oracle-arm"
╭─reimu@macbook ~
╰─$ docker version
Client:
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:55:20 2021
OS/Arch: darwin/arm64
Context: us-oracle-arm
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:53:13 2021
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
runc:
Version: 1.0.1
GitCommit: v1.0.1-0-g4144b63
docker-init:
Version: 0.19.0
GitCommit: de40ad0
╭─reimu@macbook ~
╰─$ docker info
Client:
Context: us-oracle-arm
Debug Mode: false
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 6
Server Version: 20.10.8
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
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: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: e25210fe30a0a703442421b0f60afac609f950a3
runc version: v1.0.1-0-g4144b63
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.8.0-1037-oracle
Operating System: Ubuntu 20.04.2 LTS
OSType: linux
Architecture: aarch64
CPUs: 2
Total Memory: 11.55GiB
Name: us-oracle-arm-03
ID: SY27:JEU5:TKB2:DVJJ:ISJZ:SDP4:OHKW:PBSI:4LLO:Y42G:WHYW:E6LI
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment