From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cG0bBy8reWJWWgEAbAwnHQ (envelope-from ) for ; Mon, 09 May 2022 16:54:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gMX+Bi8reWIgBwEAauVa8A (envelope-from ) for ; Mon, 09 May 2022 16:54:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 28F242017E for ; Mon, 9 May 2022 16:54:38 +0200 (CEST) Received: from localhost ([::1]:42552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no4mS-0004oB-Hb for larch@yhetil.org; Mon, 09 May 2022 10:54:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no4m9-0004nO-G9 for help-guix@gnu.org; Mon, 09 May 2022 10:54:17 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no4m7-0001IR-4U for help-guix@gnu.org; Mon, 09 May 2022 10:54:17 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D50353200935; Mon, 9 May 2022 10:54:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 09 May 2022 10:54:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remworks.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1652108052; x= 1652194452; bh=dfwWzJFWV5jhXFNHJKzipTaWNyGcbtAc4DI7C4QPIug=; b=X p5u1L32ATOzWsicLH+Ak7JtTZqr9BmGR9X2x4mVCAGwBuhHgAEkYHHrvbXjTVIkO +uiT0wn5/TLoiTdQO0uNTfeAhPZSr7gfSOAUOaleUUimtz5DEIt3kejgluL2cgow H5rv1SHbMa48tfhcYHDudgwGuDuiFueF+kUNNNpcTih9Z9tp7rfs9udBnhaYHltR KgcfRgMNiz5dmlydNTru01llI+TjhrOzqm8+nXen21YPGaE48lIBNOhp90go1jry fXtj4iVdKCsckjYYjsWYny/LRqJ0P3fZe1J2AM+yUWkpi3PXDd/M1KuemtUlapVb LOGfJH9VirL/apr69CF7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1652108052; x=1652194452; bh=dfwWzJFWV5jhX FNHJKzipTaWNyGcbtAc4DI7C4QPIug=; b=s1QPRU27gcdZRbFUV67jQ74B2pYKZ oHXA4IvtR25hRkZiDrYIJv09Ee+PkVQKLFtD8LHTNEQj8kaHXwhm39DgikNKFfy6 TXFUKt4+oYpKWAnTh7T5+2RWecreCZg/lTYjaIDI6coDV6CgqgzAzaFo+6SLm43H t1AgAQ0cvYbekqd6YvdeZh8jXRXjRWsFF1Og3XhWnNI78cupSHxCSpBX6k4Dc2HP N5TeaixE4GmtZjf6t3GghHOJfqmrfzqXp2TF+ekVsKAjs9FBC4vizyU38huI0gqT GY5mm/1nr4n1PAoYPsxIcikktrbFXBFtopTrXQiuinOulYerPXv/dAiwA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvvefujgffkfggtgfgsehtqh ertddtreejnecuhfhrohhmpeftvghmtghouchvrghnucdkthcugggvvghruceorhgvmhgt ohesrhgvmhifohhrkhhsrdhnvghtqeenucggtffrrghtthgvrhhnpeehvdffteetffdthe ekgfegjeffvdfhvddugeeffffggffgkeeivdekleefvdfggeenucffohhmrghinhepghhn uhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehrvghmtghosehrvghmfihorhhkshdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 May 2022 10:54:11 -0400 (EDT) References: <87levpd3d8.fsf@remworks.net> <87o8075bbs.fsf@gmail.com> <87a6brhvin.fsf@remworks.net> <878rra6d1c.fsf@gmail.com> User-agent: mu4e 1.6.10; emacs 27.2 From: Remco van 't Veer To: zimoun Cc: help-guix@gnu.org Subject: Re: docker containers stop when doing guix install In-reply-to: <878rra6d1c.fsf@gmail.com> Date: Mon, 09 May 2022 16:54:10 +0200 Message-ID: <87tu9yhi3x.fsf@remworks.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.24; envelope-from=remco@remworks.net; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652108078; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dfwWzJFWV5jhXFNHJKzipTaWNyGcbtAc4DI7C4QPIug=; b=uUeo9kMR3KDaTMKIaWtwj1x5RdOdalU2RMqSKZRxY/1dD4nSyBuV5136rzdiBGXxtw6Wje E4TRonVr9naGtDquUk2/2DZGipPY96IMR2r0GleOolcePiKdLaEZYFtWkb1/5eQS4wLuS9 At6H70IHAQW7nUc3ofzIOVok9IaVMfsGpWQz3Ed43KjPuWXsm6ZBUroF+jCmEU/R+ZMAzX zoP7c1bc4dJRInsuJ2Oox9urfPz9H4vHvYWlcL0f2DgU2eX5tYhvJvnTmYzP78KI2xRjG+ OyluB5YDUKUuoqM7AgFmy6igrHEpnG8ROS7mgX/J+ELOZlOwWEiVBUhZONQo2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652108078; a=rsa-sha256; cv=none; b=VZTSj5nCqSoabquW3xu0wN+uh3u6pTdUCAQ484n+c0nOLnDrIZCJsJ1+sV4DrBd27pABSf fbDPpnda0xCXNIjSGFx5W5vNbrB3qP9rpBQadINpu5rS2pBONfqdHa4/VQwv/84PXz656Y qTM/uw9X7N2GoCecnGERduxKUMwmA3pDT3STq/M1U20XKrRoR0m1VsBKsJZpQ7ax62kLFU XAa28FWPf4ilhorvnjQ3hrJFNbTeTdBEAVMqLetFAHGcibu/t1zgKLF8BD6ybvyVNO82IK 5VSX/iTMvNP90ttJPOpM7jQx+iZ/aiyxqVlf1X06Yb+kYhgDoMcw4OTsrFahWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm3 header.b="X p5u1L3"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=s1QPRU27; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm3 header.b="X p5u1L3"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=s1QPRU27; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 28F242017E X-Spam-Score: 0.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: /4DypDEqeKF6 2022/05/09 15:39, zimoun: > Hi, > > On Mon, 09 May 2022 at 12:04, Remco van 't Veer wrot= e: > >> Outside in the guix installation which runs the docker service defined >> using: >> >> (service docker-service-type) > > [...] > >> The docker images are images like "postgres:10.10" taken from docker hub >> so nothing special. It seems the docker-services sends signals to >> process running in managed containers and some of those process stop? > > It is not easy to connect the dots. :-) > > IIUC, you are running Guix System and using the =E2=80=99docker-service-t= ype=E2=80=99. > Right? Yes. > You have several Docker images running. This images are launched via > the =E2=80=99docker-service-type=E2=80=99, right? Yes. > Unrelated to Docker, when you run one Guix subcommand as =E2=80=9Cguix in= stall=E2=80=9D > or =E2=80=9Cguix pull=E2=80=9D, then the some Docker images are stopped a= s the ones > containing mysql or postgres, whereas the other containing an > elasticsearch still runs. Right? Guix install, shell or pull. And yes, some are stopped but some (for instance elasticsearch) still run. > Could you be precise on which containers downloaded from where are > working and which containers downloaded from where are stopped? > > Other said, how can I reproduce the bug? As follows: $ docker ps CONTAINER ID IMAGE COMMAND CREATED ST= ATUS PORTS NAMES $ docker run -d postgres:10.10 .. 2b52ee072b1f5584cae597afb033cdcc0e560bbe9145b17b41502c204034e60b $ docker ps CONTAINER ID IMAGE COMMAND CREATED ST= ATUS PORTS NAMES 2b52ee072b1f postgres:10.10 "docker-entrypoint.s=E2=80=A6" 2 seconds a= go Up 1 seconds 5432/tcp blah_blah $ guix shell xeyes -- xeyes substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% 0.0 MB will be downloaded xeyes-1.1.2 11KiB = 613KiB/s 00:00 [##################] 100.0% The following derivation will be built: /gnu/store/xc002hxl4g8mskqmpm0grsk8s45m91gz-profile.drv applying 4 grafts for xeyes-1.1.2 ... building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building directory of Info manuals... building profile with 1 package... $ docker ps CONTAINER ID IMAGE COMMAND CREATED ST= ATUS PORTS NAMES $ exit First we see no docker containers are running, then we start postgres-10 from docker hub, now we see its container is running, then we do something using guix-shell on an application *not already available on this system*, now the container died. This does not work the second time when the "derivation" is already "built". Weird huh? Cheers, Remco