sudo docker pull redis
sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
docker.io/redis latest a6edd7a55846 9 days ago 105.4 MB
sudo docker run -d redis
f141e7a97aa9652191b7583d118561d63b952510c3603770f22ae36001b6d2d3
sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f141e7a97aa9 redis:latest "docker-entrypoint.s 28 seconds ago Up 26 seconds sad_hodgkin
sudo docker exec -it sad_hodgkin bash
进入了
网友评论