Docker是一个跨平台的轻量级虚拟机,可移植性非常高,一次部署,终生可用。Docker可以在Linux,Windows,MacOS等平台上安装使用。
安装
brew cask install docker
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
bitwarden-cli elixir gr-osmosdr jenkins lmod uhd
ccache gnuradio hexyl kubernetes-helm purescript vim
Error: Could not link:
/usr/local/etc/bash_completion.d/brew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/zsh/site-functions/_brew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/man/man1/brew.1
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 4197, done.
remote: Counting objects: 100% (4197/4197), done.
remote: Compressing objects: 100% (4189/4189), done.
remote: Total 4197 (delta 26), reused 452 (delta 5), pack-reused 0
Receiving objects: 100% (4197/4197), 1.33 MiB | 622.00 KiB/s, done.
Resolving deltas: 100% (26/26), done.
Checking connectivity... done.
Checking out files: 100% (4182/4182), done.
Tapped 1 command and 4098 casks (4,205 files, 4.3MB).
==> Satisfying dependencies
==> Downloading https://download.docker.com/mac/stable/29211/Docker.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'docker'.
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'.
? docker was successfully installed!
注册用户 地址:https://hub.docker.com/
检查是否安装成功 docker --version
➜ ~ docker --version
Docker version 18.09.0, build 4d60db4
➜ ~
docker search elasticsearch
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
elasticsearch Elasticsearch is a powerful open source sear… 3379 [OK]
kibana Kibana gives shape to any kind of data — str… 1372 [OK]
nshou/elasticsearch-kibana Elasticsearch-6.3.1 Kibana-6.3.1 91 [OK]
itzg/elasticsearch Provides an easily configurable Elasticsearc… 67 [OK]
kubernetes/fluentd-elasticsearch An image that ingests Docker container log f… 25
elastichq/elasticsearch-hq Official Docker image for ElasticHQ: Elastic… 25 [OK]
lmenezes/elasticsearch-kopf elasticsearch kopf 17 [OK]
esystemstech/elasticsearch Debian based Elasticsearch packing for Lifer… 14
bitnami/elasticsearch Bitnami Docker Image for Elasticsearch 14 [OK]
taskrabbit/elasticsearch-dump Import and export tools for elasticsearch 12 [OK]
monsantoco/elasticsearch ElasticSearch Docker image 11 [OK]
mesoscloud/elasticsearch [UNMAINTAINED] Elasticsearch 9 [OK]
blacktop/elasticsearch Alpine Linux based Elasticsearch Docker Image 8 [OK]
justwatch/elasticsearch_exporter Elasticsearch stats exporter for Prometheus 8
centerforopenscience/elasticsearch Elasticsearch 4 [OK]
barchart/elasticsearch-aws Elasticsearch AWS node 2
jetstack/elasticsearch-pet An elasticsearch image for kubernetes PetSets 1 [OK]
forkdelta/fluentd-elasticsearch fluent/fluentd with fluent-plugin-elasticsea… 1 [OK]
phenompeople/elasticsearch Elasticsearch is a powerful open source sear… 1 [OK]
thingswise/elasticsearch Elasticsearch + etcd2 peer discovery 1 [OK]
18fgsa/elasticsearch Built from https://github.com/docker-library… 0
igneoussystems/base-elasticsearch A base image containing 3p tools for elastic… 0
wreulicke/elasticsearch elasticsearch 0 [OK]
driveclutch/infra-elasticsearch-aws Elasticsearch Docker for use in AWS 0 [OK]
igneoussystems/base-elasticsearch-5 Base elasticsearch 5.1.1 container
docker pull elasticsearch
➜ ~ docker pull elasticsearch
Using default tag: latest
Error response from daemon: manifest for elasticsearch:latest not found
指定版本 docker pull elasticsearch:5.1.1
➜ ~ docker pull elasticsearch:5.1.1
5.1.1: Pulling from library/elasticsearch
75a822cd7888: Pull complete
57de64c72267: Pull complete
cd1fc1696ecd: Pull complete
34836fffacad: Pull complete
4f4f57ee64ee: Pull complete
975b9daf71f5: Pull complete
6c6cde91351a: Pull complete
cda5a5d3e7b3: Pull complete
1c6134e30966: Pull complete
f9f0dc86ab9c: Pull complete
99c4c5cec031: Pull complete
0892d1f1b676: Pull complete
627538d3dc8c: Pull complete
460c3be3282e: Pull complete
Digest: sha256:6b111f95c72f9b9f560c9495f6906e73f0baef0d3e842528da2d236f9a19423a
Status: Downloaded newer image for elasticsearch:5.1.1
docker images
➜ ~ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
elasticsearch 5.1.1 08dc186844c7 2 years ago 353MB
----------------未完待续----------------