forked from docker/docker-hoster
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a5eeb03e8 | |||
| eb55a805b4 |
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM python:3-alpine
|
||||
FROM frolvlad/alpine-python3
|
||||
|
||||
RUN pip3 install docker
|
||||
RUN mkdir /hoster
|
||||
|
||||
@@ -55,6 +55,13 @@ def main():
|
||||
hosts.pop(container_id)
|
||||
update_hosts_file()
|
||||
|
||||
if status=="rename":
|
||||
container_id = e["id"]
|
||||
if container_id in hosts:
|
||||
container = get_container_data(dockerClient, container_id)
|
||||
hosts[container_id] = container
|
||||
update_hosts_file()
|
||||
|
||||
|
||||
def get_container_data(dockerClient, container_id):
|
||||
#extract all the info with the docker api
|
||||
|
||||
Reference in New Issue
Block a user