X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail.bitmessage.ch (mail.bitmessage.ch [146.228.112.252]) by lists.alpinelinux.org (Postfix) with ESMTP id 7A6235C5EC1 for ; Mon, 9 Apr 2018 14:40:52 +0000 (GMT) dkim-signature: v=1; a=rsa-sha256; d=bitmessage.ch; s=mail; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References; bh=AWVduQ1GM5S/WZWIIKFFJPs3Yj9Vez5oFN+HRTu2G3o=; b=UlQU2pUDF6DhUm2K6HP35SeB5e8+eqanZWBVkAWCQAJAIwPhNAMcToyqT2e1CM2E3vzfUowoj6ybcsdhUxMmIzqpC3ihAgbyrbUge5rnmgAnhxSTik/HzBL+K8wE4+c6vAONlU6vM+nsLG93InRCELDBSMrcuMpGN1+OpglDIxE= Received: from alpine.my.domain (ppp78-37-139-232.pppoe.avangarddsl.ru [78.37.139.232]) by mail.bitmessage.ch with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Mon, 9 Apr 2018 16:40:10 +0200 Date: Mon, 9 Apr 2018 14:39:13 +0000 From: =?iso-8859-1?B?Q+Fn?= To: alpine-user@lists.alpinelinux.org Subject: Re: [alpine-user] Docker add user pwd Message-ID: <20180409143913.GA27510@alpine.my.domain> References: X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Gabor Toth wrote: > #Add user >=20 > RUN ["adduser","-D","-s","/bin/bash", "admin"] > #Set pwd for user >=20 > #this is not working > RUN ["echo","admin:password","|", "chpasswd"] I am not an expert and have never used it, but the docs[0] show, that you should just "RUN adduser -D -s /bin/bash admin" and "RUN echo admin:password | chpasswd", i.e. no hard brackets. [0]: https://docs.docker.com/engine/reference/builder/ -- ca=F3c --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---