comment-installer-et-utiliser-docker-sur-ubuntu-18-04-fr
_新しいバージョンのプレデデントデトゥトリエルとエテレディジェパーhttps://www.digitalocean.com/community/users/finid[finid]._
前書き
https://www.docker.com/[Docker] est une application qui simplifie le processus de gestion des processus d'application dans les _containers_(conteneurs)。 従業員は、資源のプロセスを完全に処理します。 補助機器、仮想機器、ポータブル機器、資源の尊重、およびシステムの開発者への敬意を表しています。
Docker、consultezhttps://www.digitalocean.com/community/tutorials/the-docker-ecosystem-an-introduction%20-to-common-components[L'écosystèmeDocker :はじめにaux composants communs]。
Dans ce tutoriel、vous allez installer and utiliser Docker Community Edition(CE)sur Ubuntu 18.04。 Vous installerez Docker lui-meme、travaillerez avec des conteneurs et des images、puis transmettrez une image dans unréférentielDocker。
条件プレアブル
ツトリエルを注ぐ、vous aurez besoin desélémentssuivants
-
Ubuntu 18.04の設定を解除し、ファイルをインストールします
Ubuntu 18.04のサービスの初期設定ガイド、yの使用法sudo non root et un pare-feu 。 -
Un compte sur Docker Hub si vous souhaitez
Docker Hubのイメージとトランスポートのイメージを表示します。
手順1 — Dockerのインストール
Dockerの責任あるパッケージのインストールパッケージは、Ubuntuを使用して、バージョンlaおよびrécenteをインストールします。 Dockerを使用して、Dockerの公式ライセンスに加えて、Dockerを追加します。 フェアに注ぎ、パケの新しいソース、パトカーのGPGからGPGを、ガランティールの有効期限、パケのインストーラーに追加します。
存在するパケのリストを表示します:
sudo apt update
エンスイート、インストールqueques paquetspré-requisqui permettentàʻapt` d'utiliser les paquets via HTTPS:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
GPGデュレフェレンティエDockerオフィシエアボレットシステムのAjoutezエンスイートラクレ:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Ajoutez leréférentielDocker auxソースAPT:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu stable"
寄宿舎、パケ、ドッケドパケ、パケアベックレパケDocker duréférentielrécemmentajouté:
sudo apt update
Docker au lieu duréférentielパーdéfautUbuntuの場合は、Assurez-vous que vousêtessur le point d'installeràpartir duréférentiel
apt-cache policy docker-ce
Von verrez une doniees com don'es comme celle-ci、meme si lenumérode version de Docker peutêtredifférent:
apt-cacheポリシーdocker-ceの出力
docker-ce:
Installed: (none)
Candidate:
Version table:
500
500 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages
「Docker-ce +」のインストールは、Ubuntu 18.04のDockerにDockerをインストールするためのインストールの準備ができていることを確認してください。
仕上げ、installez Docker:
sudo apt install docker-ce
Dockerのメンテナンスメンテナンスとインストール、プロセスのアクティビティを実行することで、デマラージュを実行できます。 Vérifiezqu'il est en cours d'execution:
sudo systemctl status docker
ドン・デ・ラ・ソーティ・デヴレイト・エブレ・アセンブル・ア・セレ・シ、モントラン・キュー・ル・サービス・エスト・アクティフ・アンド・コース・エクスキューション:
Output● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-07-05 15:08:39 UTC; 2min 55s ago
Docs: https://docs.docker.com
Main PID: 10096 (dockerd)
Tasks: 16
CGroup: /system.slice/docker.service
├─10096 /usr/bin/dockerd -H fd://
└─10113 docker-containerd --config /var/run/docker/containerd/containerd.toml
Dockerのインストールとメンテナンスは、Docker(デーモン)、クライアントのDockerの `+ docker +`コマンドを使用して行うことができます。 Nous verronsは、コマンド+ 'docker + `に加えて、tard dans ce tutorielをコメントしています。
手順2 — Docker sans Sudo(オプション)のコマンドの実行
「+ docker +」コマンドを使用して、グループの* root *またはグループのutilisateurのグループ* docker *、Dockerのインストールの自動化の自動化を実行します。 Si vous essayez d'exécuterla commande `+ docker +` sans la prefixer avec `+ sudo +` ou sans faire partie du groupe * docker *、vous obtiendrez une sortie dedonnéescomme celle-ci:
Outputdocker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
テーパー `+ sudo +`を使用して、 `+ docker +`のコマンドを実行します。
sudo usermod -aG docker ${USER}
グループ、アップリケ、リコネクティブ、およびタペストのセットのアップリケに新しいアップリケを注ぎます:
su - ${USER}
Vous serezは、継続的な利用のために参加者を招待します。
使用状況の確認とメンテナンスのためのメンテナンス:
id -nG
Output sudo docker
実用的なグループを利用する `+ docker +`の利用、接続の明確化、明示的な利用法の実用化:
sudo usermod -aG docker
記事の記事は、「+ docker +」および「docker *」グループの実用的なコマンドを想定しています。 Si vous choisissez de ne pas le faire、veuillez ajouter `+ sudo +` en avant des commandes。
司令官の `+ docker +`専用の探索。
手順3 — Dockerコマンドの使用率
利用者の `+ docker +`は、オプションとコマンドの引数を変換するために使用されます。 La syntaxe prend cette forme:
docker [option] [command] [arguments]
Afficher toles les sous-commandes disponibles、tapes:
docker
Docker 18の一部であり、責任者は完全に責任を負います。
Output
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
ヴォーチチャケスーコマンドデクライトアンフランセ注ぎますが、理解度:
Output
attach Attachez les flux standard locaux d'entrée et de sortie de données et d'erreur à un conteneur en cours d'exécution
build Construire une image à partir d'un fichier Docker
commit Créer une nouvelle image à partir des modifications d'un conteneur
cp Copier des fichiers / dossiers entre un conteneur et le système de fichiers local
create Créer un nouveau conteneur
diff Inspecter les modifications apportées aux fichiers ou aux répertoires du système de fichiers d'un conteneur
events Obtenir des événements en temps réel du serveur
exec Exécuter une commande dans un conteneur en cours d'exécution
export Exporter le système de fichiers d'un conteneur en tant qu'archive tar
history Afficher l'historique d'une image
images Lister les images
import Importer le contenu d'une archive pour créer une image de système de fichiers
info Afficher des informations à l'échelle du système
inspect Renvoyer des informations de bas niveau sur les objets Docker
kill Tuer un ou plusieurs conteneurs en cours d'exécution
load Charger une image depuis une archive tar ou STDIN
login Connectez-vous à un registre Docker
logout Déconnectez-vous d’un registre Docker
logs Récupérer les journaux d'un conteneur
pause Suspendre tous les processus dans un ou plusieurs conteneurs
port Répertorier les mappages de ports ou un mappage spécifique pour le conteneur
ps Lister les conteneurs
pull Extraire une image ou un référentiel d'un registre
push Transmettre une image ou un référentiel dans un registre
rename Renommer un conteneur
restart Redémarrer un ou plusieurs conteneurs
rm Retirer un ou plusieurs conteneurs
rmi Supprimer une ou plusieurs images
run Exécuter une commande dans un nouveau conteneur
save Enregistrer une ou plusieurs images dans une archive tar (transmise par défaut à STDOUT)
search Recherchez des images dans le hub Docker
start Démarrer un ou plusieurs conteneurs arrêtés
stats Afficher un flux en direct des statistiques d'utilisation des ressources du ou des conteneurs
stop Arrêtez un ou plusieurs conteneurs en cours d'exécution
tag Créez une balise TARGET_IMAGE qui fait référence à SOURCE_IMAGE
top Afficher les processus en cours d'un conteneur
unpause Annuler la suspension de tous les processus dans un ou plusieurs conteneurs
update Mettre à jour la configuration d'un ou plusieurs conteneurs
version Afficher les informations de la version de Docker
wait Bloquez jusqu'à ce qu'un ou plusieurs conteneurs s'arrêtent, puis imprimez leurs codes de sortie
オプションのディスポイブルを注ぎ、コマンド、タペスを注ぐ:
docker --help
Dockeràl’échelledusystème、utilisezの情報を注ぐ:
docker info
Explorons特定のコマンドのコマンド。 Nous allons beginerによってtravailler avec des images。
手順4 —イメージDockerの使用率
Les conteneurs Dockerは、Dockerの一部であります。 https://hub.docker.com [Docker Hub]のDocker Extrait cesイメージ、Dockerの登録されていないDockerの登録、projet Dockerのオリジナルのソシエテ Docker sur Docker Hubの画像を表示します。 Ainsi、アプリケーションおよびディストリビューションのディストリビューションLinuxは画像を表示しません。
Dockerハブの一部を使用して、画像の検証を行います。
docker run hello-world
Dockerの機能を修正するための方法:
OutputUnable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9bb5a5d4561a: Pull complete
Digest: sha256:3e1764d0f546ceac4565547df2ac4907fe46f007ea229fd7ef2718514bcec35d
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
Docker n'a pas pu trouver initialement l'image `+ hello-world +`ロケール。 Dockerハブの一部である、画像データの提供 画像の保存、Dockerは、画像とアプリケーションの管理者であり、入会者であり、愛情のこもったメッセージです。
Vous pouvez rechercher des images disponibles sur Docker Hub en utilisant la commande `+ docker +` avec la sous-commande `+ search +`。 例、Ubuntu、tapezにrechercher l'imageを注ぐ:
docker search ubuntu
スクリプト解析Dockerハブとレンバーラリストオブトートレスイメージは、対応しないでください。 Dans ce cas、lerésultatsera similaireàceci:
OutputNAME DESCRIPTION STARS OFFICIAL AUTOMATED
ubuntu Ubuntu is a Debian-based Linux operating sys… 7917 [OK]
dorowu/ubuntu-desktop-lxde-vnc Ubuntu with openssh-server and NoVNC 193 [OK]
rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 156 [OK]
ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 93 [OK]
ubuntu-upstart Upstart is an event-based replacement for th… 87 [OK]
neurodebian NeuroDebian provides neuroscience research s… 50 [OK]
ubuntu-debootstrap debootstrap --variant=minbase --components=m… 38 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 36 [OK]
nuagebec/ubuntu Simple always updated Ubuntu docker images w… 23 [OK]
tutum/ubuntu Simple Ubuntu docker images with SSH access 18
i386/ubuntu Ubuntu is a Debian-based Linux operating sys… 13
ppc64le/ubuntu Ubuntu is a Debian-based Linux operating sys… 12
1and1internet/ubuntu-16-apache-php-7.0 ubuntu-16-apache-php-7.0 10 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mariadb-10 ubuntu-16-nginx-php-phpmyadmin-mariadb-10 6 [OK]
eclipse/ubuntu_jdk8 Ubuntu, JDK8, Maven 3, git, curl, nmap, mc, … 6 [OK]
codenvy/ubuntu_jdk8 Ubuntu, JDK8, Maven 3, git, curl, nmap, mc, … 4 [OK]
darksheer/ubuntu Base Ubuntu Image -- Updated hourly 4 [OK]
1and1internet/ubuntu-16-apache ubuntu-16-apache 3 [OK]
1and1internet/ubuntu-16-nginx-php-5.6-wordpress-4 ubuntu-16-nginx-php-5.6-wordpress-4 3 [OK]
1and1internet/ubuntu-16-sshd ubuntu-16-sshd 1 [OK]
pivotaldata/ubuntu A quick freshening-up of the base Ubuntu doc… 1
1and1internet/ubuntu-16-healthcheck ubuntu-16-healthcheck 0 [OK]
pivotaldata/ubuntu-gpdb-dev Ubuntu images for GPDB development 0
smartentry/ubuntu ubuntu with smartentry 0 [OK]
ossobv/ubuntu
...
Dans la colonne * OFFICIAL *、* OK * indique une image construite et Prize en charge par lasociétéderrièrele projet。 アベスを特定し、スーハイテスを利用し、プーヴスを利用し、スーコマンドの `+ pull +`を使用してください。
司令官の画像を表示するために、「+ ubuntu +」の縦座標に画像を追加します。
docker pull ubuntu
Vous verrez la sortie dedonnéessuivante:
OutputUsing default tag: latest
latest: Pulling from library/ubuntu
6b98dfc16071: Pull complete
4001a1209541: Pull complete
6319fc68c576: Pull complete
b24603670dc3: Pull complete
97f170c87c6f: Pull complete
Digest: sha256:5f4bdc3467537cbbe563e80db2c3ec95d548a9145d64453b06939c4592d67b6d
Status: Downloaded newer image for ubuntu:latest
画像、画像、画像、画像、画像、画像、画像、画像、画像、画像、画像 Comve vous l'avez vu avec l'exemple `+ hello-world +`、si une image n'a pasététéléchargéelorsque` + docker + `estexécutéavec la sous-commande` + run + `、le client Dockertélécharged'abord l'image、puisexécuteun conteneur en l'utilisant。
プールの画像を追加するtéléchargéessur votre ordinateur、tapez:
docker images
ドンデのソーセージ開発者の類似者:
OutputREPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 113a43faa138 4 weeks ago 81.2MB
hello-world latest e38bc07ac18e 2 months ago 1.85kB
Comme vous le verrez plus loin dans ce tutoriel、les images que vous utilisez pourexécuterdes conteneurs peuventêtremodifiéesetutiliséespourgénérerde nouvelles images、qui peuvent ensuiteêtreest le transmises(_pushed_ es Docker。
Voyons氏は、経営者に加えて詳細を説明しています。
手順5 — Dockerの管理者
Le conteneur `+ hello-world +` que vous avezexécutéàl'étapeprécédenteest un exemple de conteneur quis'exécuteet se fermeaprèsavoirémisun test de test。 Les conteneursは、peuventêtrebeaucoupとutiles que celaを使用しています。 アフタートウト、イルズに似たAUXマシンのバーチュエル、メイン・イル・ソント・プラス・コンビビオー。
例示、実用的なラ・デルニエールの画像、ドゥブントゥの例。 通勤者のコンビナート* -i *および* -t * vous donne unaccèsinteractif au shell dans le conteneur:
docker run -it ubuntu
指揮者の招待者を招待し、反射器を流します。
Outputroot@d9b100f2f636:/#
司令官の注意事項 Dans cet exemple、il s'agit de `+ d9b100f2f636 +`。 Vous aurez besoin de cet ID de conteneur + tard pour identifier le conteneur lorsque vous souhaitez le supprimer。
Vous pouvezのメンテナンスエクゼキューターn'importe quelle commande dans le conteneur。 例として、メトンはコンテヌール・ドゥ・インテリエ・デュ・パネにあります。 Vous n'avez pas besoin depréfixern'importe quelle commande avec `+ sudo +` car vousopérezdans le conteneur en tant qu'utilisateur * root *:
apt update
エンスイート、installez n'importe quelleアプリケーション。 Node.jsのインストール:
apt install nodejs
Node.jsをインストールして、Ubuntuの管理者になります。 Lorsque l'installation estterminée、vérifiezque Node.js estinstallé:
node -v
Vous verrez lenumérode versionaffichésur votreターミナル:
Outputv8.10.0
Conteeurのl'intérieurdu conteneur s 'アップリケの一意性に対する修正の修正。
禁煙者を招待し、タペズ「+出口+」を招待します。
Voyons maintenant commentgérerles conteneurs sur notresystème。
手順6 — Consteneurs Gestion des conteneurs Docker
Dockerペンダントを瞬時に使用し、Von aurez de nombreux conteneurs actifs(en cours d'execution)およびinactifs sur votre ordinateurを使用します。 注:*アクティブなもの*(contenurs actifs)、utilisez:
docker ps
celle-ciでのドナの組み立て可能なVous verrez une:
OutputCONTAINER ID IMAGE COMMAND CREATED
Dans ce tutoriel、vous avezdémarrédeux conteneurs。 イメージの「+ hello-world +」とイメージの自動化+ ubuntu + `。 Les deux conteneurs ne sont plus en cours d’execution、meis ils are present toujours sur votre sysmeme。
関係者にメッセージを送る—アクティビティと非アクティブ、例 `+ docker ps +`の一般的な通信 `+ -a +`:
docker ps -a
celle-ciでのドナの組み立て可能なVous verrez une:
d9b100f2f636 ubuntu "/bin/bash" About an hour ago Exited (0) 8 minutes ago sharp_volhard
01c950718166 hello-world "/hello" About an hour ago Exited (0) About an hour ago festive_williams
アフィシェール・ル・デニエ・コンテヌール・ケ・ヴ・アヴェス・クレ
docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d9b100f2f636 ubuntu "/bin/bash" About an hour ago Exited (0) 10 minutes ago sharp_volhard
コンテナーのアレンテを注ぎ、 `+ docker start +`を使用して、コンテナーまたはコンテナーのコンビを実行します。 「+ d9b100f2f636 +」のUbuntu avec l'IDの管理者:
docker start
デ・マール・エ・ヴァス・プーヴェ・ユーティライザー `+ docker ps +`の投稿
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d9b100f2f636 ubuntu "/bin/bash" About an hour ago Up 8 seconds sharp_volhard
入学後の入学後、「+港湾労働者の停留所」、「在留資格」または「在留資格」を利用してください。 Cette fois-ci、nous utiliserons le nom que Docker aattribuéau conteneur、qui est `+ sharp_volhard +`:
docker stop
Une fois que vous avezdécidéque vous n'avez plus besoin d'un conteneur、supprimez-leàl'aide de la commande `+ docker rm +` en utilisantànouveau l'du du conteneur ou son nom。 「+ docker ps -a +」コマンドを使用して、「+ hello-world +」とsupprimez-leなどのイメージを作成します。
docker rm
Vous pouvezdémarrerun nouveau conteneur et lui donner un nom en utilisant le commutateur `+-name +`。 Vous pouvezégalementutiliser le commutateur `+-rm +`を使用してストリームを作成します。 コマンド+ `docker run help +`を追加し、オプションの情報を追加します。
Les conteneurs peuventêtretransformésen images que vous pouvez utiliser pourcréerde nouveaux conteneurs。 よろしくお願いします。
手順7 —変更の検証とイメージDockerの検証
Lorsque vousdémarrezune image Docker、vous pouvezcréer、modifier et supprimer des fichiers comme vous le pouvez avec une machine virtuelle。 レモディフィケーションは、アポッテリテスとアップリケのコンテヌール担当者です。 Vous pouvez ledémarreret l'arrêter、mais une fois que vous l'avezdétruitavec la commande `+ docker rm +`、les modification seront definitivement perdues。
Cetteセクションexpliqueコメント登録者l'étatd'un conteneur en tant que nouvelle image Docker。
Node.jsのインストールはUbuntu、管理者は管理者、管理者は画像、主な管理者は画像とは異なります。 Mais vous voudrezpeut-êtreréutiliserce conteneur Node.js comme base pour de nouvelles images plus tard。
Dockeràl'aide de la commande suivanteの新しいインスタンスの修正と修正が行われました。
docker commit -m "What you did to the image" -a "Author Name" /
Le commutateur * -m * estdestinéau message de validation qui vous aide、vous et les autres、àsavoir les modification que vous avezapportées、tandis que * -a * estutilisépourspécifierl'auteur。 「+ container_id +」(ID du conteneur)は、Dockerのセッションインタラクティブなセッションを作成します。 Docker Hubのサプリメントを提供します。DockerHubには、「+リポジトリ+」および「Dockerハブ」があります。
例、* sammy *、conveeur `+ d9b100f2f636 +`、la commande seraitの詳細:
docker commit -m "added Node.js" -a "" /ubuntu-nodejs
Lorsque vous _commit_(validez)une image、la nouvelle image estenregistréelocalement sur votre ordinateur。 プラスロインダンストゥトゥトリエル、ヴューアプレンドレズアトランスメトロウンイメージダンスウンレジストDocker tel que Dockerハブafin que d'autres personnes puissent yaccéder。
Docker、vous verrezapparaîtrela nouvelleの画像、ainsi que l’ancienne dont elle estの問題の画像:
docker images
Vous verrez une sortie dedonnéescomme ceci:
OutputREPOSITORY TAG IMAGE ID CREATED SIZE
/ubuntu-nodejs latest 7c1f35226ca6 7 seconds ago 179MB
ubuntu latest 113a43faa138 4 weeks ago 81.2MB
hello-world latest e38bc07ac18e 2 months ago 1.85kB
Dans cetの例、 `+ ubuntu-nodejs +` est la nouvelle image、dérivéede l'image `+ ubuntu +`存在するDocker Hub。 さまざまな修正の適用例、変更の例、ノードの変更のインストール、NodeJSのインストールの違い。 Ainsi、プロチェーンフォイスクデヴューエクゼキューターユナイテッドコンテンユーアンユーティリザントユナイテッドUbuntu avec NodeJSプレインストール、ヴーポーレズシンプルメントユーティライザーラヌーベルイメージ。
Vous pouvezégalementcréerdes imagesàpartir d'un `+ Dockerfile +`、ce qui vous permet d'automatiser l'installation de logiciels dans une nouvelle image。 Cependant、cela sort du cadre de ce tutoriel。
パルテオンメンテナンスラヌーヴェルイメージアベニュードペルソネスアフィンクエルズピュイセントクレアデコンテヌールアパルティーデセルシ
手順8 —画像の変換DockerとDockerの比較
ラ・プロチェイン・エタペ・ロジケ・アフター・ラ・クレエーション・デュヌ・ヌーベル・イメージ・ア・パルティール・デュン・イメージ・アトランティアー・ア・ラ・パルターター・アヴェック・クエルク・アミス、ル・モンデ・アンティエ・シュール・ドッカー・ハブまたはオーガニック・レジスト・レジスト Docker HubまたはDocker、vous devez avoir un comptelà-basを使用して、Docker Hubをイメージバーに注ぎます。
Cetteセクションは、DockerとハブDockerを比較して、コメントの変換を行います。 Apprendreàcréervotre propre registreprivéDocker、consultez https://www.digitalocean.com/community/tutorials/how-to-set-up-a%20-private-docker-registry-on-ubuntu-14-04 [Ubuntu 14.04の登録特権をコメント解除する設定]。
Transmettre votreイメージ、connectez-vous d'abordàDocker Hubを注ぎます。
docker login -u
Docker Hubを使用して、Vous認証者をVous認証者に招待します。 Si vous avezspécifiéle mot de passe correct、l'authentification devraitréussir。
エンスイート、vous pouvez transmettre votre propre image en utilisant:
docker push /
「+ ubuntu-nodejs +」トランスメトリイメージを注ぎます。
docker push /
ある特定の臨時雇用者のイメージを確認し、画像を保存してください。
OutputThe push refers to a repository [docker.io//ubuntu-nodejs]
e3fbbfb44187: Pushed
5f70bf18a086: Pushed
a3b5c80a4eba: Pushed
7f18b442972b: Pushed
3ce512daaf78: Pushed
7aae4540b42d: Pushed
...
登録されていない画像、登録されている画像、画像、画像、画像、および画像
image:https://assets.digitalocean.com/articles/docker_1804/ec2vX3Z.png [Nouvelle liste d'images Docker sur Docker Hub]
伝送の一時的で一時的でないタイプ、vous ne vousêtesprobablement pasconnecté:
OutputThe push refers to a repository [docker.io//ubuntu-nodejs]
e3fbbfb44187: Preparing
5f70bf18a086: Preparing
a3b5c80a4eba: Preparing
7f18b442972b: Preparing
3ce512daaf78: Preparing
7aae4540b42d: Waiting
unauthorized: authentication required
Connectez-vous avec `+ login docker +`およびrépétezla暫定的な送信。 Docker Hubのページに存在するヴェリフィエクイール専用バスルーム。
Vous pouvezメンテナントUtiliser `+ docker pull / +`は余分なイメージとlを使用します。
結論
Dans ce tutoriel、vous avezinstalléDocker、travailléavec des images et des conteneurs、puis transmis une image modifiàDocker Hub。 保守管理の基礎、調査https://www.digitalocean.com/community/tags/docker?type=tutorials [チュートリアルDocker] de lacommunautéDigitalOcean。