Skip to content

dpp2009/Mydocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mydocker

环境Python+Django
Python版本2.7X
Django 1.8

第一版功能
目前仅支持容器的 启动、停止、删除、创建、inspect、镜像的显示.

#python2.7安装
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
./configure --enable-shared --prefix=/usr/local/python2.7/
make
make install
echo /usr/local/python2.7/lib/ >> /etc/ld.so.conf && ldconfig

安装python-pip

wget http://peak.telecommunity.com/dist/ez_setup.py
/usr/local/python2.7/bin/python2.7 ez_setup.py
/usr/local/python2.7/bin/easy_install pip

#django安装使用pip
/usr/local/python2.7/bin/pip install django

修改连接Docker地址

vim control/utils/docker_api.py
domain='http://10.0.2.23:4243'

运行(直接浏览器就可以访问了)
/usr/local/python2.7/bin/python2.7 manage.py runserver 0.0.0.0:8080

容器

Aaron Swartz #创建容器
Aaron Swartz #容器详情
Aaron Swartz #镜像
Aaron Swartz

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 36.7%
  • JavaScript 36.4%
  • Python 18.0%
  • CSS 8.9%