Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 282 Bytes

running-container.md

File metadata and controls

18 lines (13 loc) · 282 Bytes

Running a Container

Running Detached

docker run -d -p 9999:8888 myhello

Running Interactive

docker run -i -t fedora
  • -p HOST_PORT:CONTAINER_PORT Forward the port to the host
  • -d Run detached
  • -i Run interactive
  • -t Allocate a pseudo-TTY