Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to realize Hello world with Docker

Shulou Source: shulou.com Published: 2022-05-31 20:01:25 11月14日 Update

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!

Tags: Run content more knowledge practical learned next variables commands dilemmas actual customers clients containers situations articles cases environments tapes websites Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Microsoft Shulou Tech Info Xiaomi OPPO Reno