docker 命令

docker build -t yudao-server .

docker run -d -p 48080:48080 --name docker-demo-container yudao-server

docker exec ifconfig


docker inspect <1ba3e670fe2a> | grep IPAddress
docker inspect 1ba3e670fe2a | grep IPAddress

1ba3e670fe2a

docker exec -it my-redis /bin/bash

docker exec -it docker-demo-container /bin/bash

你可能感兴趣的:(docker,容器,运维)