Giter Site home page Giter Site logo

micropyramid / docker-box Goto Github PK

View Code? Open in Web Editor NEW
112.0 112.0 45.0 4.28 MB

Web Interface to manage full blown docker containers and images.

License: MIT License

Python 44.17% Go 1.55% Shell 6.35% CSS 5.02% JavaScript 0.93% HTML 41.97%
django docker docker-web-management dockerbox python virtualization

docker-box's People

Contributors

ashwin31 avatar druuu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-box's Issues

Installation script exited with errors

Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-51-generic
Found initrd image: /boot/initrd.img-5.4.0-51-generic
done
# Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           20.10.4
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        d3cb89e
 Built:             Thu Feb 25 07:05:27 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.4
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       363e9a8
  Built:            Thu Feb 25 07:03:23 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
         containers which can be used to obtain root privileges on the
         docker host.
         Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
         for more information.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-virtualenv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package python-pip
E: Package 'python-virtualenv' has no installation candidate
sed: can't read /root/docker_box/docker_box/docker_box/settings.py: No such file or directory


Installation script finished with errors

Env:

Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

Here's the output of the errors:
Errors were encountered while processing: python3 python3-dev python3-pkg-resources python3-virtualenv python3-lib2to3 dh-python virtualenv python3-distutils E: Sub-process /usr/bin/dpkg returned an error code (1) sed: can't read /root/docker_box/docker_box/docker_box/settings.py: No such file or directory

enhancement request

found your script via google and a couple of enhancement requests

Setup script:

  • during the setting up of IP's explain further what each one is going to be used for. Example is containers vs bridge etc.

  • have setup detect if files already exist and give option to remove them or continue install

Web interface:

  • pull in existing docker containers from host

  • give example format for mac address

  • error checking in web interface for inserting incorrect ip. (its logged to the console but not displayed)

js socket connect server socket its faild

hey, guys
os:centos7.3
"/exec/60fa055186ad' failed: Connection closed before receiving a handshake response", it has the connect few seconds then will close the connection, I change the machine but the solution it's the same.
I think that go program maybe has problem? I only executed the 'terminal' to keep the listen port ,yet , it still listen the port , but when i open the websocket demo of js to connect that port , it will close the port and return [15/Jul/2017 15:37:27] "GET /container/de4a9c0f5249/terminal/ HTTP/1.1" 200 47
exit status 1exit status 1
, do you know why?

hmm, i rebuild your terminal.go,then i debug it ,then i find a problem its "http: panic serving 101.224.55.177:54665: Post http://2375:de4a9c0f5249/containers/de4a9c0f5249/exec: invalid URL port "de4a9c0f5249" hahaha, my bad , thanks.

setup script

script to setup docker-box on first installation
for os: ubuntu-16.04-x64

  • update os
  • install docker if its not available
  • enable docker api mode
  • add firewall rule to disallow anyone to access docker api from outside
  • install postgres latest
  • install nginx
  • install and configure uswgi
  • install all necessary packages for django
  • create user and configure it in django project
  • create admin user and give the password to login
  • project should run on some port like 23949
  • it will be better if it can be configured on a domain by taking input from user as part of installation process. then, we can run it with ssl provided by certbot.
  • generate dynamic django secret key. store and serve it using ENV. This makes sure not to mess up when we update the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.