How to realize Hello world with Docker
This article introduces the relevant knowledge of "how to achieve Hello world in Docker". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Get the environment variable of docker-machine named zx1
Docker-machine env zx1
2. Connect the native docker client Shell to the docker machine named zx1
Copy the prompted command and run:
Eval $(docker-machine env zx1)
2. Run the docker container
Run using busybox image from NetEase beehive
Docker run hub.c.163.com/library/busybox:latest echo hello world
This is the end of the content of "how to achieve Hello world in Docker". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!