micropyramid / docker-box Goto Github PK
View Code? Open in Web Editor NEWWeb Interface to manage full blown docker containers and images.
License: MIT License
Web Interface to manage full blown docker containers and images.
License: MIT License
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
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
fix container launch issue with '/' and don't use curl, do with requests.
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)
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.
script to setup docker-box on first installation
for os: ubuntu-16.04-x64
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.