Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 393 Bytes

docker-redis-create.md

File metadata and controls

15 lines (9 loc) · 393 Bytes

Create and run redis

docker run -d -p {{PORT}}:{{PORT}} --name {{CONTAINER_NAME}} redis

  • PORT: Port on which redis will be running/accessed
  • CONTAINER_NAME: Name to assign to the container

Example

docker run -d -p 6379:6379 --name redis redis

Related