Public Repository

Last pushed: 3 months ago
Short Description
Base Linux server
Full Description

V6:
usage:
docker run -d -it --name myserver zhiyuan1989/centos:v6
docker-enter myserver
supervisord
"then you can access this container via ssh with user=root password=r00t

   + fix supervisor---stale supervisor.sock
   + java8,g++
   + python-setuptools,wget,supervisor
   + gcc,php,ctags,vimcfg
   + ssh,expect,which,net-tools,httpd

Tips: you can use
docker-ip
docker-pid
docker-enter
docker-attach
to manage your containers in windows or Linux.
In window ,please refer to the Powershell section in the below comments.
In Linux ,please refer to the bashrc section in the below comments, (will update later!)

Docker Pull Command
Owner
zhiyuan1989

Comments (2)
zhiyuan1989
3 months ago

Supervisord configuration


[unix_http_server]
file=/tmp/supervisor.sock
;chmod = 0700
;chown= root:root
;username = root
;password = r00t
;[inet_http_server] ; inet (TCP) server disabled by default
;port = 127.0.0.1:9001
;username = root
;password = r00t
[supervisord]
logfile = /var/log/supervisor/supervisord.log
logfile_maxbytes = 50MB
logfile_backups=3
loglevel = info
pidfile = /tmp/supervisord.pid
nodaemon = false
minfds = 1024
minprocs = 200
umask = 022
user = root
identifier = supervisor
;directory = /tmp
;nocleanup = true
;childlogdir = /tmp
;strip_ansi = false
;environment = KEY1="value1",KEY2="value2"logfile = /tmp/supervisord.log
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl = unix:///tmp/supervisor.sock
;username = root
;password = r00t
prompt = mysupervisor
;history_file
[program:sshd]
command=/usr/sbin/sshd -D
;[include]
;files /etc/supervisor.d/*
;[group:foo]
;[eventlistener:theeventlistenername]

zhiyuan1989
3 months ago

window powershell config

powershell config location C:\Users\Wing\Documents\WindowsPowerShell
notepad $profile
configuration text:

Import-Module posh-docker
function intoContainer ( $containerID ){
docker exec -it $containerID bash
}
function attachContainer ( $containerID ){
docker attach $containerID
}
function getContainerIP ( $containerID ){
docker inspect --format '{{.NetworkSettings.IPAddress}}' $containerID
}
function getContainerPID ( $containerID ){
docker inspect --format '{{.State.Pid}}' $containerID
}
Set-Alias docker-attach attachContainer
Set-Alias docker-enter intoContainer
Set-Alias docker-ip getContainerIP
Set-Alias docker-pid getContainerPID