2014-12-01 21:15:52 +08:00
|
|
|
dockerfiles
|
|
|
|
===========
|
|
|
|
|
2016-05-07 15:40:16 +08:00
|
|
|
A collection of delicious docker recipes.
|
|
|
|
|
2015-09-20 12:09:08 +08:00
|
|
|
[![](https://travis-ci.org/vimagick/dockerfiles.svg)](https://travis-ci.org/vimagick/dockerfiles)
|
|
|
|
|
2016-01-14 17:26:01 +08:00
|
|
|
- :octocat: <https://github.com/vimagick/dockerfiles>
|
2016-01-20 10:36:30 +08:00
|
|
|
- :beetle: <https://github.com/vimagick/dockerfiles/issues>
|
2016-01-14 22:41:07 +08:00
|
|
|
- :book: <https://github.com/vimagick/dockerfiles/wiki>
|
2016-07-10 16:01:46 +08:00
|
|
|
- :whale: <https://hub.docker.com/u/vimagick/> (x86)
|
|
|
|
- :whale: <https://hub.docker.com/u/easypi/> (arm)
|
2015-04-18 16:05:22 +08:00
|
|
|
|
2017-10-19 12:40:12 +08:00
|
|
|
## Affiliates
|
2017-03-22 14:13:48 +08:00
|
|
|
|
2017-10-19 12:40:12 +08:00
|
|
|
[![](https://bandwagonhost.com/templates/organicbandwagon/images/logo.png)](https://bandwagonhost.com/aff.php?aff=21106)
|
2017-03-22 14:13:48 +08:00
|
|
|
[![](https://www.vultr.com/media/banner_1.png)](https://www.vultr.com/?ref=6821947)
|
2016-05-05 22:52:27 +08:00
|
|
|
|
2016-07-01 12:44:34 +08:00
|
|
|
## Todo
|
2015-07-07 22:19:08 +08:00
|
|
|
|
2016-07-01 12:44:34 +08:00
|
|
|
- [ ] caddy
|
|
|
|
- [ ] dsniff
|
|
|
|
- [ ] ettercap
|
|
|
|
- [ ] freelan
|
|
|
|
- [ ] gitbook
|
2015-07-08 11:34:43 +08:00
|
|
|
- [ ] gitolite
|
2015-07-07 22:19:08 +08:00
|
|
|
- [ ] hashcat
|
2016-07-01 12:44:34 +08:00
|
|
|
- [ ] imagemagick
|
|
|
|
- [ ] ipset
|
2015-07-07 22:19:08 +08:00
|
|
|
- [ ] irc
|
2016-07-01 12:44:34 +08:00
|
|
|
- [ ] libreswan
|
|
|
|
- [ ] mitmproxy
|
2016-07-01 22:15:28 +08:00
|
|
|
- [ ] nagios
|
2016-07-01 12:44:34 +08:00
|
|
|
- [ ] nfs
|
|
|
|
- [ ] openldap
|
|
|
|
- [ ] openswan
|
2016-10-11 16:01:56 +08:00
|
|
|
- [ ] postfix
|
2016-07-01 12:44:34 +08:00
|
|
|
- [ ] pritunl
|
|
|
|
- [ ] pyinstaller
|
|
|
|
- [ ] rtmpdump
|
2016-01-22 10:40:23 +08:00
|
|
|
- [ ] sensu
|
2016-10-15 14:12:17 +08:00
|
|
|
- [ ] ssf
|
2015-07-07 22:19:08 +08:00
|
|
|
- [ ] tshark
|
2016-07-01 12:44:34 +08:00
|
|
|
- [ ] youtube-upload
|
2015-07-07 22:19:08 +08:00
|
|
|
|
2018-07-22 20:57:36 +08:00
|
|
|
## Big Data
|
|
|
|
|
2018-07-28 02:55:18 +08:00
|
|
|
- [x] kafka-arm
|
2018-07-22 20:57:36 +08:00
|
|
|
- [x] kafka-manager
|
2019-06-16 16:24:14 +08:00
|
|
|
- [x] presto
|
2018-07-28 10:51:01 +08:00
|
|
|
- [x] superset-arm
|
2018-07-22 20:57:36 +08:00
|
|
|
- [x] zookeeper-arm
|
|
|
|
|
2016-10-31 12:57:30 +08:00
|
|
|
## IoT
|
|
|
|
|
2017-04-22 12:19:52 +08:00
|
|
|
- [x] hass :+1:
|
|
|
|
- [x] hbdg :+1:
|
2016-10-31 12:57:30 +08:00
|
|
|
- [x] node-red :+1:
|
2017-04-22 12:19:52 +08:00
|
|
|
- [x] mosquitto :+1:
|
2016-10-31 12:57:30 +08:00
|
|
|
|
2017-10-02 11:04:15 +08:00
|
|
|
## Automation
|
|
|
|
|
|
|
|
- [x] drone-rsync-arm
|
2017-10-02 16:01:47 +08:00
|
|
|
- [x] drone-scp-arm
|
|
|
|
- [x] drone-ssh-arm
|
|
|
|
- [x] errbot :octocat:
|
|
|
|
- [x] hubot :octocat:
|
2017-10-02 11:04:15 +08:00
|
|
|
- [x] jenkins-arm :beetle:
|
|
|
|
|
2016-07-01 12:44:34 +08:00
|
|
|
## Daemon
|
2015-07-07 22:19:08 +08:00
|
|
|
|
2015-09-19 23:52:35 +08:00
|
|
|
- [x] alpine-arm :+1:
|
2015-09-03 10:46:51 +08:00
|
|
|
- [x] aria2 :+1:
|
2015-08-16 04:37:38 +08:00
|
|
|
- [x] audiowaveform
|
2016-01-28 18:00:25 +08:00
|
|
|
- [x] cadvisor
|
2015-09-13 12:11:19 +08:00
|
|
|
- [x] casperjs :+1:
|
2015-07-06 08:43:11 +08:00
|
|
|
- [x] collectd
|
2018-11-28 14:05:02 +08:00
|
|
|
- [x] freegeoip
|
2016-07-29 00:07:14 +08:00
|
|
|
- [x] freeradius
|
2017-11-02 20:22:53 +08:00
|
|
|
- [x] frp :cn:
|
2017-03-11 18:05:03 +08:00
|
|
|
- [x] graphite
|
2015-08-28 17:30:27 +08:00
|
|
|
- [x] h2o
|
2016-01-14 17:20:38 +08:00
|
|
|
- [x] httpbin :+1:
|
2015-08-16 04:37:38 +08:00
|
|
|
- [x] influxdb
|
2017-12-26 21:22:11 +08:00
|
|
|
- [x] logstash
|
2017-05-24 15:26:14 +08:00
|
|
|
- [x] luigi
|
2016-03-06 22:45:23 +08:00
|
|
|
- [x] mariadb
|
2016-06-03 11:23:51 +08:00
|
|
|
- [x] mariadb-arm
|
2015-07-06 08:43:11 +08:00
|
|
|
- [x] monit
|
2015-12-28 12:22:35 +08:00
|
|
|
- [x] moodle :beetle:
|
2015-12-09 00:57:14 +08:00
|
|
|
- [x] mosquitto
|
2016-01-03 15:07:50 +08:00
|
|
|
- [x] motion-arm :+1:
|
2015-07-06 08:43:11 +08:00
|
|
|
- [x] nginx
|
2016-07-07 01:57:13 +08:00
|
|
|
- [x] nifi
|
2019-05-25 19:47:03 +08:00
|
|
|
- [x] ntopng
|
2016-01-31 14:33:49 +08:00
|
|
|
- [x] nullmailer
|
2016-01-31 19:40:31 +08:00
|
|
|
- [x] nullmailer-arm
|
2016-08-18 14:38:20 +08:00
|
|
|
- [x] openhab
|
2016-07-01 22:15:28 +08:00
|
|
|
- [x] openssh
|
2017-03-31 16:35:00 +08:00
|
|
|
- [x] ot-recorder
|
|
|
|
- [x] ot-recorder-arm
|
2016-08-20 16:00:05 +08:00
|
|
|
- [x] piknik
|
2016-02-03 15:35:22 +08:00
|
|
|
- [x] portia
|
2015-06-24 19:27:11 +08:00
|
|
|
- [x] pure-ftpd
|
2016-01-16 07:54:16 +08:00
|
|
|
- [x] redis-arm
|
2018-02-06 18:08:53 +08:00
|
|
|
- [x] rinetd
|
2016-09-19 14:27:44 +08:00
|
|
|
- [x] rslsync
|
2015-07-13 22:52:11 +08:00
|
|
|
- [x] rsyncd
|
2016-10-29 16:12:00 +08:00
|
|
|
- [x] rsyslog
|
2016-04-07 08:35:31 +08:00
|
|
|
- [x] samba :+1:
|
2016-05-06 22:44:49 +08:00
|
|
|
- [x] samba-arm :+1:
|
2015-09-03 10:46:51 +08:00
|
|
|
- [x] scrapyd :+1:
|
2017-06-28 18:03:57 +08:00
|
|
|
- [x] statsd
|
2016-01-29 01:46:55 +08:00
|
|
|
- [x] swarm-arm
|
2015-07-06 08:43:11 +08:00
|
|
|
- [x] taskd
|
2016-06-01 14:54:18 +08:00
|
|
|
- [x] telegraf
|
2016-11-02 17:23:46 +08:00
|
|
|
- [x] tftpd
|
2015-09-20 12:12:00 +08:00
|
|
|
- [x] tmail :beetle:
|
|
|
|
- [x] urlwatch :beetle:
|
2016-06-17 18:06:40 +08:00
|
|
|
- [x] vnstat
|
2016-01-31 23:04:20 +08:00
|
|
|
- [x] vsftpd
|
2015-11-05 12:20:42 +08:00
|
|
|
- [x] webhook
|
2015-09-20 12:12:00 +08:00
|
|
|
- [x] webkit :beetle:
|
2016-07-03 22:01:27 +08:00
|
|
|
|
2016-07-07 17:30:08 +08:00
|
|
|
## Media
|
2016-07-03 22:01:27 +08:00
|
|
|
|
2017-04-29 10:18:23 +08:00
|
|
|
- [x] cmus
|
|
|
|
- [x] cmus-arm
|
2016-07-03 22:01:27 +08:00
|
|
|
- [x] ffmpeg
|
2016-07-07 18:17:27 +08:00
|
|
|
- [x] ffmpeg-arm
|
2016-07-07 17:30:08 +08:00
|
|
|
- [x] ffserver :beetle:
|
2016-07-10 02:19:09 +08:00
|
|
|
- [x] icecast
|
2016-07-07 17:30:08 +08:00
|
|
|
- [x] live555
|
|
|
|
- [x] minidlna
|
2016-08-17 11:09:57 +08:00
|
|
|
- [x] mpd
|
2016-07-08 06:39:29 +08:00
|
|
|
- [x] murmur
|
2017-09-30 21:02:33 +08:00
|
|
|
- [x] openmeetings
|
2016-07-07 17:30:08 +08:00
|
|
|
- [x] plex :moneybag:
|
|
|
|
- [x] red5 :+1:
|
|
|
|
- [x] red5-arm :construction:
|
2016-07-07 18:17:27 +08:00
|
|
|
- [x] rtmp-client-arm :+1:
|
2016-07-07 17:30:08 +08:00
|
|
|
- [x] rtmp-server
|
2017-08-13 18:15:26 +08:00
|
|
|
- [x] shairplay-arm
|
2016-09-18 00:59:19 +08:00
|
|
|
- [x] shoutcast
|
2016-07-08 21:01:29 +08:00
|
|
|
- [x] tesseract
|
2016-11-15 08:41:05 +08:00
|
|
|
- [x] vnc2flv
|
2016-07-03 22:01:27 +08:00
|
|
|
- [x] youtube-dl
|
2016-07-07 17:30:08 +08:00
|
|
|
- [x] youtube-worker :beetle:
|
2015-07-07 22:19:08 +08:00
|
|
|
|
2016-07-01 12:44:34 +08:00
|
|
|
## Web
|
|
|
|
|
|
|
|
- [x] discuz :cn:
|
|
|
|
- [x] django-cms
|
|
|
|
- [x] dokuwiki :+1:
|
|
|
|
- [x] dokuwiki-arm :+1:
|
2017-05-21 09:01:03 +08:00
|
|
|
- [x] glances
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] gogs-arm :cn:
|
|
|
|
- [x] grafana
|
|
|
|
- [x] hugo
|
|
|
|
- [x] hugo-arm
|
|
|
|
- [x] jamapi
|
|
|
|
- [x] joomla
|
|
|
|
- [x] json-server
|
2016-07-04 14:03:16 +08:00
|
|
|
- [x] mantisbt
|
2016-07-10 20:03:02 +08:00
|
|
|
- [x] mediagoblin
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] nginad
|
|
|
|
- [x] nodebb :+1:
|
|
|
|
- [x] openrefine
|
|
|
|
- [x] phpbb
|
|
|
|
- [x] phpmyadmin-arm
|
|
|
|
- [x] phpvirtualbox-arm
|
|
|
|
- [x] piwik
|
|
|
|
- [x] revive
|
2016-07-18 13:02:30 +08:00
|
|
|
- [x] zoneminder :+1:
|
2016-07-01 12:44:34 +08:00
|
|
|
|
2017-12-19 15:09:16 +08:00
|
|
|
## E-commerce
|
|
|
|
|
|
|
|
- [x] magento :shopping:
|
|
|
|
- [x] opencart :shopping:
|
|
|
|
- [x] prestashop :shopping:
|
|
|
|
|
2016-07-01 12:44:34 +08:00
|
|
|
## Security
|
|
|
|
|
2018-09-01 09:43:28 +08:00
|
|
|
- [x] aircrack-ng-arm
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] bro
|
|
|
|
- [x] clamav
|
2016-07-19 14:28:16 +08:00
|
|
|
- [x] dsniff
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] ferm
|
2016-10-27 11:34:22 +08:00
|
|
|
- [x] grr
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] hydra
|
|
|
|
- [x] iptables
|
2018-09-01 13:25:19 +08:00
|
|
|
- [x] kismet
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] routersploit
|
|
|
|
- [x] snort :beetle:
|
2016-07-19 10:51:17 +08:00
|
|
|
- [x] sslsplit
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] webgoat
|
|
|
|
|
|
|
|
## Proxy
|
|
|
|
|
|
|
|
- [x] dante
|
|
|
|
- [x] delegated
|
|
|
|
- [x] fteproxy :+1:
|
|
|
|
- [x] fteproxy-arm :+1:
|
2016-10-28 22:24:03 +08:00
|
|
|
- [x] hans
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] haproxy-arm
|
2019-06-10 07:24:36 +08:00
|
|
|
- [x] i2pd :ru:
|
2016-08-10 15:25:53 +08:00
|
|
|
- [x] kcptun :cn:
|
2019-04-15 16:01:05 +08:00
|
|
|
- [x] mtproxy
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] mysql-proxy
|
|
|
|
- [x] ngrok :+1:
|
|
|
|
- [x] obfsproxy
|
|
|
|
- [x] polipo
|
|
|
|
- [x] privoxy
|
|
|
|
- [x] privoxy-arm
|
|
|
|
- [x] proxyhub
|
|
|
|
- [x] shadowsocks
|
|
|
|
- [x] shadowsocks
|
|
|
|
- [x] shadowsocks-libev :+1:
|
|
|
|
- [x] shadowsocks-arm
|
|
|
|
- [x] shadowsocks-libev-arm :+1:
|
2016-11-25 00:04:43 +08:00
|
|
|
- [x] spiped
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] squid
|
2016-07-11 13:14:59 +08:00
|
|
|
- [x] stunnel
|
2016-07-11 14:39:42 +08:00
|
|
|
- [x] stunnel-arm
|
2016-11-05 21:31:25 +08:00
|
|
|
- [x] tinyproxy
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] tor
|
2016-09-09 16:44:23 +08:00
|
|
|
- [x] traefik-arm
|
2016-07-01 12:44:34 +08:00
|
|
|
|
|
|
|
## VPN
|
|
|
|
|
2019-05-30 19:39:48 +08:00
|
|
|
- [x] n2n :+1:
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] ocserv :+1:
|
|
|
|
- [x] openconnect
|
2016-07-11 15:26:35 +08:00
|
|
|
- [x] openconnect-arm
|
|
|
|
- [x] openvpn-arm
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] pptp
|
2016-07-11 17:30:09 +08:00
|
|
|
- [x] pptp-arm
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] pptpd
|
|
|
|
- [x] shadowvpn
|
|
|
|
- [x] strongswan :+1:
|
|
|
|
- [x] tinc :+1:
|
2016-07-13 11:41:21 +08:00
|
|
|
- [x] tinc-arm :+1:
|
2019-07-10 04:08:34 +08:00
|
|
|
- [x] wiregurad :beetle:
|
2018-03-15 23:08:14 +08:00
|
|
|
- [x] xl2tpd
|
2016-07-01 12:44:34 +08:00
|
|
|
|
|
|
|
## DNS
|
|
|
|
|
|
|
|
- [x] chinadns
|
|
|
|
- [x] dnscrypt
|
|
|
|
- [x] dnscrypt-proxy
|
|
|
|
- [x] dnscrypt-wrapper
|
2016-07-01 22:15:28 +08:00
|
|
|
- [x] dnsmasq
|
|
|
|
- [x] dnsmasq-arm
|
2016-07-01 12:44:34 +08:00
|
|
|
- [x] pdnsd
|
|
|
|
|
2015-07-12 12:56:33 +08:00
|
|
|
## 3rd-party
|
|
|
|
|
2018-07-25 17:57:33 +08:00
|
|
|
- [x] tutum/builder
|
2018-11-08 18:02:28 +08:00
|
|
|
- [x] browserless/chrome
|
2016-07-29 14:51:39 +08:00
|
|
|
- [x] certbot
|
2019-06-09 07:34:48 +08:00
|
|
|
- [x] codercom/code-server
|
2019-05-02 07:11:16 +08:00
|
|
|
- [x] confluentinc/cp-kafka-mqtt
|
2019-05-01 08:54:06 +08:00
|
|
|
- [x] confluentinc/cp-kafka-rest
|
2019-03-02 21:02:32 +08:00
|
|
|
- [x] streamsets/datacollector
|
2018-07-25 17:57:33 +08:00
|
|
|
- [x] cachethq/docker
|
|
|
|
- [x] puckel/docker-airflow
|
2016-01-11 23:21:41 +08:00
|
|
|
- [x] drone/drone
|
2016-03-05 19:47:20 +08:00
|
|
|
- [x] drupal
|
2018-08-01 16:03:18 +08:00
|
|
|
- [x] elastalert
|
2016-10-29 15:20:25 +08:00
|
|
|
- [x] elk
|
2019-06-09 09:06:10 +08:00
|
|
|
- [x] flogo/flogo-docker
|
2019-02-18 16:18:50 +08:00
|
|
|
- [x] mher/flower
|
2015-08-31 07:53:16 +08:00
|
|
|
- [x] ghost
|
2015-09-21 10:22:39 +08:00
|
|
|
- [x] gitlab/gitlab-ce
|
2019-08-11 13:08:47 +08:00
|
|
|
- [x] atlassianlabs/gostatsd
|
2018-08-05 19:04:47 +08:00
|
|
|
- [x] gliderlabs/logspout
|
2015-09-21 10:22:39 +08:00
|
|
|
- [x] gliderlabs/registrator
|
2016-07-01 12:44:34 +08:00
|
|
|
- [ ] glot
|
|
|
|
- [ ] bash
|
|
|
|
- [ ] python
|
2016-04-25 16:34:42 +08:00
|
|
|
- [x] gogs :cn:
|
2016-06-15 11:08:00 +08:00
|
|
|
- [x] haproxy
|
2018-10-25 16:10:22 +08:00
|
|
|
- [x] jmxtrans/jmxtrans
|
2018-07-22 20:57:36 +08:00
|
|
|
- [x] wurstmeister/kafka
|
2018-11-09 10:53:44 +08:00
|
|
|
- [x] netdata/netdata
|
2018-01-29 21:19:05 +08:00
|
|
|
- [x] nextcloud
|
2019-07-06 16:51:19 +08:00
|
|
|
- [x] sonatype/nexus3
|
2016-06-07 00:51:39 +08:00
|
|
|
- [x] jazzdd/phpvirtualbox
|
2016-05-03 14:05:55 +08:00
|
|
|
- [x] jenkins
|
2016-05-27 13:24:39 +08:00
|
|
|
- [x] jupyter/notebook
|
2016-09-19 14:27:44 +08:00
|
|
|
- [x] kylemanna/openvpn
|
2019-01-22 17:47:49 +08:00
|
|
|
- [x] metabase/metabase
|
2017-10-30 08:08:25 +08:00
|
|
|
- [x] metasploitframework/metasploit-framework :skull:
|
2017-10-03 12:33:31 +08:00
|
|
|
- [x] minio/minio
|
2016-02-02 17:15:48 +08:00
|
|
|
- [x] mongo
|
2016-04-23 00:00:45 +08:00
|
|
|
- [x] neo4j
|
2019-06-25 03:28:35 +08:00
|
|
|
- [x] erichough/nfs-server
|
2017-09-06 17:23:27 +08:00
|
|
|
- [x] odoo
|
2018-10-30 15:56:55 +08:00
|
|
|
- [x] osixia/openldap
|
2019-02-15 19:25:53 +08:00
|
|
|
- [x] campbellsoftwaresolutions/osticket
|
2015-08-26 23:47:10 +08:00
|
|
|
- [x] owncloud
|
2016-06-03 13:19:58 +08:00
|
|
|
- [x] phpmyadmin
|
2018-08-25 11:33:37 +08:00
|
|
|
- [x] pihole/pihole
|
2017-03-23 16:34:07 +08:00
|
|
|
- [x] portainer/portainer :+1:
|
2016-12-07 09:35:42 +08:00
|
|
|
- [x] postgres
|
2019-05-01 09:24:01 +08:00
|
|
|
- [x] postgrest/postgrest
|
2016-06-18 14:57:59 +08:00
|
|
|
- [x] registry
|
2015-08-27 00:29:37 +08:00
|
|
|
- [x] rocket.chat
|
2019-05-26 17:26:14 +08:00
|
|
|
- [x] rundeck/rundeck
|
2019-06-15 20:28:54 +08:00
|
|
|
- [x] wonderfall/searx
|
2015-09-23 00:35:28 +08:00
|
|
|
- [ ] selenium
|
|
|
|
- [ ] hub
|
|
|
|
- [ ] node-firefox
|
|
|
|
- [x] standalone-firefox
|
2019-01-11 14:35:28 +08:00
|
|
|
- [x] sentry
|
2019-06-15 20:28:54 +08:00
|
|
|
- [x] scrapinghub/splash
|
2018-07-28 08:45:54 +08:00
|
|
|
- [x] amancevice/superset
|
2017-10-07 14:59:37 +08:00
|
|
|
- [x] v2ray/official :cn:
|
2018-07-25 17:57:33 +08:00
|
|
|
- [x] centurylink/watchtower
|
2019-04-18 00:38:22 +08:00
|
|
|
- [x] anapsix/webdis
|
2017-05-19 13:29:40 +08:00
|
|
|
- [x] wekanteam/wekan
|
2019-02-12 18:28:09 +08:00
|
|
|
- [x] yourls
|
2017-09-13 17:31:46 +08:00
|
|
|
- [x] zookeeper
|
2019-01-09 14:52:04 +08:00
|
|
|
- [x] elkozmon/zoonavigator
|
2015-07-12 12:56:33 +08:00
|
|
|
|
2016-01-02 02:19:43 +08:00
|
|
|
## auto-completion
|
|
|
|
|
|
|
|
```bash
|
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# handy auto-completion for docker-exec
|
|
|
|
#
|
|
|
|
|
|
|
|
enter() {
|
|
|
|
local name=${1:?}
|
|
|
|
docker exec -it $name sh -c 'exec $(command -v bash || command -v sh)'
|
|
|
|
}
|
|
|
|
|
|
|
|
__enter() {
|
|
|
|
local cur=${COMP_WORDS[COMP_CWORD]}
|
|
|
|
for cid in $(docker ps -q)
|
|
|
|
do
|
|
|
|
local name=$(docker inspect -f '{{.Name}}' $cid)
|
|
|
|
name=${name#/}
|
|
|
|
if [[ $name = $cur* ]]
|
|
|
|
then
|
|
|
|
COMPREPLY+=("$name")
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
complete -F __enter enter
|
|
|
|
```
|