Bind Container Port to Host Port
1docker run -d --name testOnly -p 6379:6379 redis:latest
NOTE: Always read the format of -p as host:container.
1docker run -d --name testOnly -p 6379:6379 redis:latest
NOTE: Always read the format of -p as host:container.