Docker has command line programs, but they are not well suited to automation. Return values and pars-able output are both lacking, but there is an API that you can use instead. The Dockerd api can listen on a local socket or even a remote accessible port, but in these examples I'll show local socket only.
Tags: docker containers jq json cli
]]>ctrl-q
bg <job number>
fg <job number>
ctrl-y
ctrl-z
!66
!!
!$
!*
history -c
history -d <number>
find -type f -name "*.rpmnew" | sed 's/\(^.*\)\(\.rpmnew\)$/mv -f \1\2 \1/' |sh
find /path -name "*.*" -exec | perl -pi -e 's///g' {} \;
set -o vi
Now esc to enter command mode where vi keys
work. Pressing enter returns to normal mode.Tags: shell cli cheatsheet
]]>ctrl-a tab
ctrl-a 0-9
ctrl-a d
ctrl-a ?
ctrl-a \
ctrl-a x
ctrl-a c
screen -r
screen /dev/ttyUSB0 9600
ctrl-a s
Tags: shell cli cheatsheet
]]>