Execute on the commandline:
Which init system do you currently use?: systemd or upstart
Execute on the commandline:
Rudger Gravestein
Execute on the commandline:
dmidecode -s system-serial-number
source: http://askubuntu.com/a/507009/89694
$ sudo docker attach 665b4a1e17b6 #by ID
or
$ sudo docker attach loving_heisenberg #by Name
$ root@665b4a1e17b6:/#
UPDATE: (docker >= 1.3) Thanks to WiR3D user who suggested another way to get container’s shell. If we use attach
we can use only one instance of shell. So if we want open new terminal with new instance of container’s shell, we just need run the following:
$ sudo docker exec -i -t 665b4a1e17b6 bash #by ID
or
$ sudo docker exec -i -t loving_heisenberg bash #by Name
$ root@665b4a1e17b6:/#