Docker 是在本機OS上執行虛擬化,與傳統的虛擬方法不太一樣。
以下是Docker的常用指令
docker images //show local docker images
docker search python //search docker images online
docker pull python // pull store images to local
docker run -t -i python /bin/bash //run docker images(name:python) by bash
-i : Keep STDIN open even if not attached ,無論有無 Attach ,都會確保 STDIN 有持續開啟
-t : Allocate a pseudo-tty 分配一個 tty
docker commit -m "Add pandas" -a "add pandas" f446ce29c915 python
-m : same like git
-a : 指定更新的使用者信息
(一堆數字) 建立映像檔的容器的 ID
(string) images and tag
docker save -o python3.tar python //save imaes to tar file
docker rmi centos/python-35-centos7 //delete local docker images
2018年3月19日 星期一
訂閱:
文章 (Atom)
Centos GUI Webserver 設定
新灌的一台Centos7可以做以下的設定 語系設定: - sudo localectl set-locale LC_CTYPE=zh_TW.UTF-8 修改ssh port - http://linux.vbird.org/linux_server/0310telne...
-
現在市面上的智慧家居玲琅满目,上週的課程剛好有學到繼電器,所以就順帶做個智慧插座。這次DIY的智慧插座功能很簡單,純粹只用網頁開關插座,沒有其他功能。(RaspberryPi使用Python編寫,其實蠻容易擴充功能的。) 1. 首先,準備好RaspberryPi,麵包板、繼電...
-
安裝Anaconda 前往官網 https://www.continuum.io/downloads 下載sh bash Anaconda3-4.4.0-MacOSX-x86_64.sh #安裝設定 #新建環境 conda create --name crawlerP...
-
近期在玩 RaspberryPi,需要Lamp功能,邊裝邊紀錄過程,方便下次直接複製XD RaspberryPi + Apache + PHP + MariaDB + Phpmyadmin # 更新套件 sudo apt-get update & sudo apt...
