ECS上搭建Docker(CentOS7):
https://help.aliyun.com/document_detail/51853.html
docker官方文档:
https://docs.docker.com/
docker运行中容器不释放磁盘空间
https://segmentfault.com/q/1010000005846603/a-1020000005854058
Docker占满磁盘空间的解决办法
http://blog.csdn.net/tinyjian/article/details/55006725
Docker镜像的使用方法
https://yq.aliyun.com/ziliao/117548
Installed:
docker.x86_64 2:1.12.6-32.git88a4867.el7.centos
Dependency Installed:
container-selinux.noarch 2:2.19-2.1.el7 docker-client.x86_64 2:1.12.6-32.git88a4867.el7.centos
docker-common.x86_64 2:1.12.6-32.git88a4867.el7.centos oci-register-machine.x86_64 1:0-3.11.gitdd0daef.el7
oci-systemd-hook.x86_64 1:0.1.7-4.gite533efa.el7 skopeo-containers.x86_64 1:0.1.20-2.el7
Complete!
[root@linux ~]# systemctl start docker
[root@linux ~]# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.12.6
Storage Driver: devicemapper
Pool Name: docker-253:1-2090763-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 11.8 MB
Data Space Total: 107.4 GB
Data Space Available: 30.55 GB
Metadata Space Used: 581.6 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.135-RHEL7 (2016-11-16)
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
Volume: local
Network: null host bridge overlay
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Security Options: seccomp
Kernel Version: 3.10.0-514.10.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 2
CPUs: 1
Total Memory: 1.796 GiB
Name: linux
ID: 36Y5:26VW:LXNL:VB3M:TMSA:DERW:ORXN:SFX5:FM62:LRMC:D6CI:56SV
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
127.0.0.0/8
Registries: docker.io (secure)
Win7上安装docker:
Running pre-create checks...
(default) No default Boot2Docker ISO found locally, downloading the latest relea
se...
(default) Latest release for github.com/boot2docker/boot2docker is v17.06.0-ce
(default) Downloading C:UsersThinkPad.dockermachinecacheoot2docker.iso fr
om https://github.com/boot2docker/boot2docker/releases/download/v17.06.0-ce/boot
2docker.iso...
参考:http://blog.csdn.net/zhengmx100/article/details/71809233
版本号必须严格匹配,只好花了一个CSDN积分下载。
Running pre-create checks...
Creating machine...
(default) Copying C:UsersThinkPad.dockermachinecacheoot2docker.iso to C:
UsersThinkPad.dockermachinemachinesdefaultoot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to create a network adapter. Some
times, such confirmation window is minimized in the taskbar.
(default) Found a new host-only adapter: "VirtualBox Host-Only Ethernet Adapter
#2"
(default) Windows might ask for the permission to configure a network adapter. S
ometimes, such confirmation window is minimized in the taskbar.
(default) Windows might ask for the permission to configure a dhcp server. Somet
imes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this vi
rtual machine, run: D:Program FilesDocker Toolboxdocker-machine.exe env defau
lt
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
__/
\____\_______/
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
Start interactive shell
ThinkPad@ThinkPad-PC MINGW64 ~ (master)
$
install cs50 ide
执行命令:
docker run --privileged -e "192.168.99.100=$(docker-machine ip default)" -e "OOFLINE_PORT=8080" --name cs50ide -d -p 5050:5050 -p 8080:8080 cs50/ide50-offline
或
docker run --privileged -e "192.168.99.100=$(docker-machine ip default)" -e "OFFLINE_PORT=8080" --name ide50 -d -p 5050:5050 -p 8080-8082:8080-8082 cs50/ide50-offline
执行完成后在浏览器中输入:
http://OFFLINE_IP:5050
或
http://192.168.99.100:5050
具体可参考:
https://manual.cs50.net/ide/offline
docker下载镜像文件很慢,可以设置代理服务器。此外,由于所有文件下载之后都房子啊C盘中,考虑到空间使用问题,最好重新设置保存路径。
详细的设置方法:
http://blog.csdn.net/y_f_raquelle/article/details/72461721
使用 Docker 搭建 Java Web 运行环境
http://www.cnblogs.com/zengkefu/p/5667046.html
docker在web开发中得使用流程是怎样的?
https://www.zhihu.com/question/51134842/answer/124450760
用Docker部署一个Web应用
https://zhuanlan.zhihu.com/p/26418829?utm_medium=social&utm_source=weibo
完整记录在 windows7 下使用 docker 的过程
http://www.jianshu.com/p/d809971b1fc1
停用和删除容器
http://blog.csdn.net/cmzsteven/article/details/49230363
删除所有images
http://blog.csdn.net/fancivez/article/details/51374609
Problem with CS50 IDE offline cs50常见问题:
https://cs50.stackexchange.com/questions/15701/problem-with-cs50-ide-offline
https://cs50.stackexchange.com/questions/13868/should-i-use-cs50-ide-or-cs50-appliance-as-an-edx-student
CS50课程论坛:
https://cs50.stackexchange.com/
cloud9 documentation 官方
https://docs.c9.io/docs/