Hello, World with Docker

Introduction

Install Docker and display Hello, World. The OS uses Mac.

Install Docker for Mac

Create a free account on Docker Hub (https://hub.docker.com/signup) to install Docker. After creating an account, download Docker for Mac from the link below and then install it.

・ Docker for Mac

After installation-If the version is displayed with --version, the installation is successful.

$ docker --version

Hello, World with Docker

Use the “Hello, World” image. This is a useful image for Docker test run. Running docker run hello-word in the terminal will download the official docker image into the container and run the image.

$ docker run hello-world

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete 
Digest: sha256:9572f7cdcc2963463447a53466950bc15a2d1917ca215a2f
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

Check container information

You can check Docker information with the docker info command.

$ docker info
...
Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 1
...

You can now confirm that Docker is installed and started successfully.

Recommended Posts

Hello, World with Docker
hello world with ctypes
Hello world with flask
Hello World with gRPC / go in Docker environment
Hello World with Flask + Hamlish
Until hello world with zappa
Hello world
Python starting with Hello world!
Hello, world! With virtual CAN communication
[Note] Hello world output with python
Hello World! By QPython with Braincrash
Pymacs hello world
cython hello world
Hello World! By QPython with Brainfu * k
Hello World and face detection with OpenCV 4.3 + Python
web2py memo: Hello World
Hello world with full features of Go language
RabbitMQ Tutorial 1 ("Hello World!")
Say hello to the world with Python with IntelliJ
Use python with docker
Proxy server with Docker
Hello World on Django
Create a one-file hello world application with django
First python ① Environment construction with pythonbrew & Hello World !!
Django's first Hello World
Create a "Hello World" (HTTP) server with Tornado
Predicting Kaggle's Hello World, Titanic Survivors with Logistic Regression-Modeling-
Programming language in "Hello World"
Implement PyTorch + GPU with Docker
PySpark life starting with Docker
Prepare python3 environment with Docker
Hello World in GO language
Try Selenium Grid with Docker
Hello World (beginners) on Django
Try building JupyterHub with Docker
Rails application building with Docker
Hello World with Google App Engine (Java 8) + Spring Boot + Gradle
Hello World with Google App Engine (Java 8) + Servlet API 3.1 + Gradle
Predicting Kaggle's Hello World, Titanic Survivors with Logistic Regression-Prediction / Evaluation-
Hello World with Google App Engine (Java 11) + Spring Boot + Gradle
Until Hello World with Flask + uWSGI + Nginx @ Sakura's VPS (CentOS 6.6)
Getting Started with Heroku-Viewing Hello World in Python Django with Raspberry PI 3
Japaneseize Matplotlib with Alpine using Docker
Until you start Jupyter with Docker
Easy Slackbot with Docker and Errbot
Start with Windows, not so scary Nim ① It's like hello world.
Introduction to TensorFlow --Hello World Edition
Hello world! (Minimum Viable Block Chain)
Creating a Flask server with Docker
Build a deb file with Docker
Tips for running Go with docker
Build Mysql + Python environment with docker
Deploy a Django application with Docker
Google App Engine development with Docker
Build PyPy execution environment with Docker
cout << "Hello, World! \ N" in python
Hello World in Flask [Appropriate memo]
Code: 2 "Hello World" in "Choregraphe-Python script"
Service mesh learned with Docker Swarm
Python #Hello World for super beginners
Rebuild Django's development environment with Docker! !! !! !!