Skip to content

Instantly share code, notes, and snippets.

@php-coder
Created January 10, 2017 18:10
Show Gist options
  • Save php-coder/423926861f0d311e69c0b2c0c9ef3df7 to your computer and use it in GitHub Desktop.
Save php-coder/423926861f0d311e69c0b2c0c9ef3df7 to your computer and use it in GitHub Desktop.
# Run 2 containters on different consoles:
# $ sudo /opt/rkt/rkt run docker://busybox --private-users --no-overlay --interactive
$ (ps aefjax | head -1; ps aefjax | grep '[/]sh')
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
23864 23871 23871 23871 pts/3 23871 Ss+ 439681024 0:00 | \_ /bin/sh
23928 23935 23935 23935 pts/4 23935 Ss+ 1278803968 0:00 | \_ /bin/sh
# Stop containers and run them again
$ (ps aefjax | head -1; ps aefjax | grep '[/]sh')
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
24142 24161 24161 24161 pts/4 24161 Ss+ 793772032 0:00 | \_ /bin/sh
24076 24084 24084 24084 pts/3 24084 Ss+ 606797824 0:00 | \_ /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment