Run Container as Daemon

1docker run -d --name redisDynamic -p 6379 redis:latest

this will bind though to host port at random. To check bound port, use

1docker port redisDynamic 6379