docker: run -it (interactive)

2 months ago

Here's how to run docker in interactive mode
sudo docker run --name nginx -p 8080:80 -d nginx:1.27
watch -n 5 curl localhost:8080
watch -n 1 "sudo docker ps --format '{{json .}}' | jq \"{ID: .ID, Names: .Names, Ports: .Ports, State: .State}\"; date"

Loading comments...