Skip to content

Instantly share code, notes, and snippets.

@bspindler
Last active November 15, 2018 01:39
Show Gist options
  • Save bspindler/1976f9d6246917b134b239bf336f18cc to your computer and use it in GitHub Desktop.
Save bspindler/1976f9d6246917b134b239bf336f18cc to your computer and use it in GitHub Desktop.
$ docker run -d --entrypoint "sleep" openjdk:8 900
e23ed611c217d1038a993b4c9794c27e0363530335c50e2ce26be596301aceb0
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e23ed611c217 openjdk:8 "sleep 900" 2 seconds ago Up 1 second vigilant_carson
$ docker exec -ti vigilant_carson /bin/bash
root@e23ed611c217:/# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 01:35 ? 00:00:00 sleep 900
root 7 0 1 01:36 pts/0 00:00:00 /bin/bash
root 13 7 0 01:36 pts/0 00:00:00 ps -ef
root@e23ed611c217:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment