liuweifeng / liuweifeng.github.io Goto Github PK
View Code? Open in Web Editor NEW俺在Github的博客,基于 Jekyll 和 Twitter Bootstrap
Home Page: https://liuweifeng.github.io
俺在Github的博客,基于 Jekyll 和 Twitter Bootstrap
Home Page: https://liuweifeng.github.io
列出所有镜像(images)
docker images
列出正在运行的容器(containers)
docker ps
列出所有的容器
docker ps -a
下载centos镜像
docker pull centos
运行centos镜像
docker run -i -t centos /bin/bash
docker run -d -p 80:80 hjue/centos-lamp
运行容器并做http端口转发
docker run -i -t -p :80 LAMP /bin/bash
建立映像文件
docker build --rm=true -t hjue/lamp .
–rm
选项是告诉Docker在构建完成后删除临时的Container,Dockerfile的每一行指令都会创建一个临时的Container,一般你是不需要这些临时生成的Container。
提交你的变更,并且把容器保存成镜像,命名为 mynewimage.3a09b2588478为容器的ID.
docker commit 3a09b2588478 mynewimage
把 mynewimage 镜像保存成 tar 文件
docker save mynewimage | bzip2 -9 -c> /home/save.tar.bz2
加载 mynewimage 镜像
bzip2 -d -c < /home/save.tar.bz2 | docker load
删除所有容器
docker rm `docker ps -a -q`
删除镜像
docker rmi [image-id]
帮助
docker run --help
导出Image
docker export <CONTAINER ID> > /home/export.tar
导入Image镜像
cat /home/export.tar | sudo docker import - mynewimage
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.