[PYTHON] Bonjour le monde avec Docker

introduction

Installez Docker et affichez Hello, World. Le système d'exploitation utilise Mac.

Installez Docker pour Mac

Créez un compte gratuit sur Docker Hub (https://hub.docker.com/signup) pour installer Docker. Après avoir créé un compte, téléchargez Docker pour Mac à partir du lien ci-dessous, puis installez-le.

・ Docker pour Mac

Après l'installation - Si la version s'affiche avec --version, l'installation est réussie.

$ docker --version

Bonjour le monde avec Docker

Utilisez l'image «Hello, World». Ceci est une image utile pour le test de Docker. L'exécution de docker run hello-word dans le terminal téléchargera l'image officielle de Docker dans le conteneur et exécutera l'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/

Vérifiez les informations du conteneur

Vous pouvez vérifier les informations Docker avec la commande docker info.

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

Il a été confirmé que Docker était installé et démarré avec succès.

Recommended Posts

Bonjour le monde avec Docker
bonjour le monde avec ctypes
Bonjour le monde sur flacon
Hello World avec gRPC / go dans l'environnement Docker
Bonjour le monde avec Flask + Hamlish
Jusqu'à bonjour le monde avec zappa
Bonjour le monde
Python commençant par Hello world!
Bonjour tout le monde! Avec la communication CAN virtuelle
[Note] Sortie Hello world avec python
Hello World! Par QPython avec Braincrash
Pymacs helloworld
cython helloworld
Hello World! Par QPython avec Brainfu * k
Hello World et détection de visage avec OpenCV 4.3 + Python
web2py Remarque: Bonjour le monde
Bonjour tout le monde avec toutes les fonctionnalités du langage Go
Tutoriel RabbitMQ 1 ("Hello World!")
Dites bonjour au monde avec Python avec IntelliJ
Utiliser python avec docker
Serveur proxy avec Docker
Hello World avec Django
Créez une application Hello World avec un seul fichier avec django
Premier python ① Construction de l'environnement avec pythonbrew & Hello World !!
Le premier Hello World de Django
Créer un serveur "Hello World" (HTTP) dans Tornado
Prédisons les survivants du Hello World de Kaggle, Titanic par régression logistique-Modélisation-
Implémenter le GPU PyTorch + avec Docker
La vie PySpark à partir de Docker
Préparer l'environnement python3 avec Docker
Hello World en langue GO
Essayez Selenium Grid avec Docker
Hello World (débutant) avec Django
Essayez de créer Jupyter Hub avec Docker
Créer une application Rails avec Docker
Hello World avec Google App Engine (Java 8) + Spring Boot + Gradle
Hello World avec Google App Engine (Java 8) + API Servlet 3.1 + Gradle
Prédisons les survivants de Hello World, Titanic de Kaggle par régression logistique-Prédiction / Évaluation-
Hello World avec Google App Engine (Java 11) + Spring Boot + Gradle
Jusqu'à Hello World avec Flask + uWSGI + Nginx @ Sakura's VPS (CentOS 6.6)
Premiers pas avec Heroku-Viewing Hello World en Python Django avec Raspberry PI 3
Japaneseize Matplotlib avec Alpine en utilisant Docker
Jusqu'à ce que vous démarriez Jupyter dans Docker
Easy Slackbot avec Docker et Errbot
Commencez avec Windows, pas si effrayant Nim ① C'est comme bonjour le monde.
Introduction à TensorFlow - Hello World Edition
Bonjour tout le monde! (Chaîne de blocs viables minimum)
Créer un serveur Flask avec Docker
Créer un fichier deb avec Docker
Conseils pour exécuter Go avec Docker
Construire un environnement Mysql + Python avec docker
Déployer l'application Django avec Docker
Développement Google AppEngine avec Docker
cout << "Hello, World! \ N" en python
Hello World avec Flask [Mémo approprié]
Code: 2 "Hello World" dans "Choregraphe-Python script"
Service mesh appris avec Docker Swarm
Python #Hello World pour les super débutants
Reconstruisez l'environnement de développement de Django avec Docker! !! !! !!