> 某個id與名稱都是唯一的(鏡像或者容器)
#### 搜索遠程鏡像(倉庫搜索docker鏡像)
```
docker search [image-name]
```
#### 查看本地鏡像
```
docker images
# or
docker image ls
```
#### 查看所有本地鏡像
> 這個里面主要是看狀態,up代表現正在運行,exit是退出的
```
docker ps -a
```
#### 獲取鏡像詳細信息
```
docker inspect {IMAGE_ID | IMAGE_NAME}
```
#### 刪除某個鏡像
```
docker rmi [imageId]
```
> 擴展:強制刪除鏡像(不推薦)
```
docker rmi -f [imageId]
```
#### docker pull命令的完整寫法如下:
> 拉取一個鏡像,需要指定Docker Registry的地址和端口號,默認是Docker Hub,還需要指定倉庫名和標簽,倉庫名和標簽唯一確定一個鏡像,而標簽是可能省略,如果省略,則默認使用latest作為標簽名,另外,倉庫名則由作者名和軟件名組成。
```
docker pull [選項] [Docker Registry 地址[:端口號]/]倉庫名[:標簽]
```
#### 查看所有容器
> 如果要查看本地所有的容器,可以使用docker container ls命令或者 docker ps
```
docker container ls
# or
docker ps
```
#### 刪除容器
> 刪除某個容器
```
# container_id表示容器id,通過docker ps可以看到容器id
$ docker rm container_id
```
> 刪除所以容器()
```
docker rm $(docker ps -q)
```
> 刪除所有退出的容器
```
docker container prune
```
#### 進入容器
```
# 進入容器,container_id表示容器的id,command表示Linux命令,如/bin/bash
docker exec -it container_id command
```
```
attach Attach to a running container #進入一個正在運行的容器
build Build an image from a Dockerfile #通過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 on a container's filesystem #查看docker容器變化
events Get real time events from the server #從docker服務獲取容器實時事件
exec Run a command in a running container #在一個已經運行的容器中運行一條命令
export Export a container's filesystem as a tar archive #導出容器的內容流作為一個tar歸檔文件
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 #kill指定docker容器
load Load an image from a tar archive or STDIN #從一個tar包中加載一個鏡像(對應save)
login Log in to a Docker registry #注冊或者登陸一個docker源服務器
logout Log out from a Docker registry #從當前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 #從docker鏡像源服務器拉取指定鏡像或者庫鏡像
push Push an image or a repository to a registry #推送指定鏡像或者庫鏡像至docker源服務器
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) 保存一個鏡像為一個tar包(對應load)
search Search the Docker Hub for images #在docker hub中搜索鏡像
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 #截取容器停止時的退出狀態值
Run 'docker COMMAND --help' for more information on a command. #運行docker命令在幫助可以獲取更多信息
```
- 學習網站
- iframe
- 跨域
- 渲染數據,防止內存泄漏
- 工具類
- 一般使用方法
- 獲取url(路由)參數
- HTML標簽轉義
- 轉義html標簽
- 加入收藏夾
- 提取頁面代碼中所有網址
- 動態加載腳本文件
- 返回頂部的通用方法
- 實現base64解碼
- 確認是否是鍵盤有效輸入值
- 全角半角轉換
- 版本對比
- 壓縮CSS樣式代碼
- 字符串長度截取
- 時間日期格式轉換
- 返回腳本內容
- 格式化CSS樣式代碼
- 獲取cookie值
- 獲得URL中GET參數值
- 獲取移動設備初始化大小
- 獲取頁面高度
- 獲取頁面scrollLeft
- 獲取頁面scrollTop
- 獲取頁面可視高度
- 獲取頁面可視寬度
- 獲取頁面寬度
- 獲取移動設備屏幕寬度
- 判斷是否移動設備
- 判斷是否是移動設備訪問
- 加載樣式文件
- 清除腳本內容
- 時間個性化輸出功能
- 金額大寫轉換函數
- 清除空格
- 隨機數時間戳
- 實現utf8解碼
- 返回字符串構成種類(字母,數字,標點符號)的數量
- 清除所有中文字符(包括中文標點符號)
- 清除所有中文字符及空格
- 校驗是否包含空格
- 校驗是否包含中文字符(包括中文標點符號)
- 校驗是否為網址
- 接成URL帶參數
- 獲取瀏覽器名稱
- 郵箱
- 手機號碼
- 根據url地址下載
- el是否包含某個class
- el添加某個class
- el去除某個class
- 獲取滾動的坐標
- 滾動到頂部
- el是否在視口范圍內
- 洗牌算法隨機
- 劫持粘貼板
- 嚴格的身份證校驗
- 隨機數范圍
- 將阿拉伯數字翻譯成中文的大寫數字
- 將數字轉換為大寫金額
- 檢測密碼強度
- 字符轉換首字大小寫
- 去除空格
- 最大值與最小值和平均值
- 函數節流器
- 16進制顏色轉RGBRGBA字符串
- 追加url參數
- base64文件轉文件和文件轉base64
- base64轉換為blob和blob轉換為file
- 生成 uid 或者 uuid 4種方法
- 正則
- 按復制快捷鍵或者右鍵復制
- 表情
- 獲取dom某個屬性上的值
- 獲取dom某個屬性的值
- 獲取系統
- 去除emoji表情符號
- 本地文件轉換 Bool url 訪問地址
- 禁止ios 擊穿后底部還能滑動
- 將數字負數轉換為字符串類型
- 將字符串類型數字判斷正負
- 判斷是否有小數點
- 判斷是否有科學技術法
- 去除0123字符串類型的數字
- 瀏覽器共享屏幕
- 兼容navigator.getUserMedia與AudioContext
- 音頻軌跡
- vue
- vue 技巧
- vue 2.xx 腳手架快速搭建環境
- vue 優化模塊
- css
- input或textarea_placeholder
- 布局巧
- form/formData
- form
- formData
- Visual-Studio-code
- VS Code
- vscode-fileheader 生成注釋
- View In Browser(右鍵瀏覽器預覽)
- Chinese (Simplified) Language(中文語音包)
- 北京地攤位置
- 輸入框使用第三方語音輸入文本問題
- adb 文檔
- serve后臺
- docker
- 介紹
- 安裝
- 常用命令
- mysql
- 安裝
- 破解Navicat Premium 無限試用
- 源碼技巧
- 實例化
- 判斷是否傳實例化對象
- 實例化構造函數
- ui 框架