Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5520
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | robert rottermann <robert@redcor.ch> |
| Newsgroups | de.comp.lang.python |
| Subject | [Python-de] docker-py: erstellen eines Docker-Images funktioniert von der CL, nicht aus Python |
| Date | Sun, 30 Jun 2019 15:44:49 +0200 |
| Lines | 49 |
| Message-ID | <mailman.63.1561902650.29664.python-de@python.org> (permalink) |
| References | <1f192908-7ac8-b474-80e3-22eea847bd6d@redcor.ch> |
| Reply-To | robert@redo2oo.ch |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de 99mHmVy+CZQgt7Dek/lhowsH8phqg5bzdjOYhW/rO07w== |
| Return-Path | <robert@redcor.ch> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 |
| Content-Language | en-US |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.29 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <1f192908-7ac8-b474-80e3-22eea847bd6d@redcor.ch> |
| Xref | csiph.com de.comp.lang.python:5520 |
Show key headers only | View raw
Hoi zäme ich versuche ein Docker Image zu baen. Dazu schreibe ich "dynamisch" ein Docker file, und lasse es dann von docker-py bauen. Python, bzw der aufgreufene Prozess stirbt mit einer Fehlermeldung: docker.errors.BuildError: The command '/bin/sh -c set -x; apt install -y python-dev ...' returned a non-zero code: 100 Wenn ich hingegen das selbe Dockerfile mit docker build . baue funktionierts. hier is der Aufruf: result = self.docker_client.images.build( path = docker_target_path, tag = tag, dockerfile=docker_file, ) hat jemand eine Idee, wo ich schrauben könnte? Interessanterweise, funktionierte das ganze mit der alten Version von docker.py Jetzt habe ich gerade noch ein experiment mit dem low-level API gemacht. Damit funktionierts. from docker import APIClient cli = APIClient(base_url='unix://var/run/docker.sock') result = cli.build( path = docker_target_path, tag = tag, dockerfile=docker_file, ) Aber ich möchte gerne das neue brauchen. gruss Robert
Back to de.comp.lang.python | Previous | Next | Find similar
[Python-de] docker-py: erstellen eines Docker-Images funktioniert von der CL, nicht aus Python robert rottermann <robert@redcor.ch> - 2019-06-30 15:44 +0200
csiph-web