# Docker 很簡單-安裝現成的image :house: [回筆記首頁](https://www.mirai.tw) ###### tags: `docker` `python` [toc] ## 安裝docker 在cento linux中執行 yum install docker 即可... 基本指令 docker search :搜尋images docker pull :下載images docker images :顯示已下載Images docker run :啟動image的OS並實體化Container docker ps :顯示已實體化的Container ## 搜尋images並安裝 執行```docker search python```就能看到有哪些images可以下載 也可以到 hub.docker.com找你要的image。 我這次要安裝 3.12-alpine3.17,指令是```docker pull python:3.11.1-alpine3.17```。 下載之後可以用```docker images```看看是否出現你下載的images. ``` $docker images Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/library/python 3.11.1-alpine3.17 18ccdc39ea28 2 days ago 55.4 MB ``` 如果有,馬上執行試試看```$ docker run -it ubuntu /bin/bash ``` Author: - [name=林奇賢]
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up