[ Prev ] [ Index ] [ Next ]

with command

Created Dienstag 07 Januar 2020


in a container attached to the console (container output visible):
$ docker run <container name/image name/id> <command>


Examples

$ docker run ubuntu sleep 5
Runs sleep 5 on ubuntu.
$ docker run ubuntu bash
Runs bash on ubuntu.