X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by lists.alpinelinux.org (Postfix) with ESMTP id 575BB5C4F49 for ; Mon, 9 Apr 2018 08:09:59 +0000 (GMT) Received: by mail-wm0-f51.google.com with SMTP id f125so14639650wme.4 for ; Mon, 09 Apr 2018 01:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maximilianeum-de.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=5JPi5yxIfF1y8SGcwQv/GVixrzpvdkx9dDEoZo8X1CM=; b=NEPpNs6f0tZwWmvXUUIb0lthg8nAN+mwlqeUErN1XQt2RVir0eD/d8C6RI++7bDvGJ OugF3OrDi5W+/y/fys8MNQ3aELc3Llft3moNm1pbWdkXAuFVXB046W3y4nY47tj7ST8A I1P2CzLUQkuCukWruyxVX5T8PbAUAdMgCFvGHXPq00rOO134HzD82DxfnQfbMXq2cHNm wWMQq4zJ6EHkch9C6ctkgbSvgqu79a+wykZDu1rYUZNcaWJJi2AZQU/cYVtBHUiHuwg3 9+uql48/FPLFATNHl6sOOT5pzpHfx2OPzg6+Cfo50CXP7+3lE8boTDu5E0oSW8MKGhZ1 2IOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5JPi5yxIfF1y8SGcwQv/GVixrzpvdkx9dDEoZo8X1CM=; b=p7dVgJ6WERInvM6Nub6xE4hcZAuIBPwnkm1O5xo9tQk6hK9X75gnxLVQxlSCFg1BR4 Qwml3qz3fWJ/jKJ3iVIBvmbfqT/1ncJZ2ucOYkZh7ihnmkxgk9/whLMceH7VT0YlLh2p iiDYHJm/zFj3eO/zaAZ9eJ83w42b7vXonsy2ufdZibRnagLGf2xI+L4sOcyoj9gFSzHW BidyJ7E8xzZfCrfx95ZH8fxrFMn19zwqcivsJyUJN2T2z2DAgFr0enoHizRHsEejWCTf bNa5sisyeRKZD5+cQCEJlgtJ6Tm4moWoEseTnUIGZn6JTugxb2twCQj955/vMvldXD4z UYKg== X-Gm-Message-State: ALQs6tCIiuEvBZG8iDUQcGq/59GhvQjAWWrUIj4xgrzIuTmtlVooFyZZ fDDm70btUgWv6ybHCee0yvNs1IxXo3sKX7D2AGbMdHzi X-Google-Smtp-Source: AIpwx4+9kBp4GStdrsY7syrg37U9AiO+gnCzjk6ydziJVhQ5Svi0XqXjurxgXTHoWIOqVpVMR5bk2fNeMXMvCkETo7Y= X-Received: by 10.80.165.28 with SMTP id y28mr21054114edb.105.1523261398361; Mon, 09 Apr 2018 01:09:58 -0700 (PDT) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.80.165.54 with HTTP; Mon, 9 Apr 2018 01:09:57 -0700 (PDT) From: Gabor Toth Date: Mon, 9 Apr 2018 10:09:57 +0200 Message-ID: Subject: [alpine-user] Docker add user pwd To: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="f403045c133a8cbb43056965eedd" --f403045c133a8cbb43056965eedd Content-Type: text/plain; charset="UTF-8" Dear All, I am trying to add a user, and then set a password for the user in a Dockerfile using node:8-alpine as base image, I am running the following command, but when I run the container, the user has no password at the end: #Add user RUN ["adduser","-D","-s","/bin/bash", "admin"] #Set pwd for user #this is not working RUN ["echo","admin:password","|", "chpasswd"] So I am wondering what the best practice here. Thanks, Gabor --f403045c133a8cbb43056965eedd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear All,

I am trying to add a user, an= d then set a password for the user in a Dockerfile using=C2=A0node:8-alpine= as base image, I am running the following command, but when I run the cont= ainer, the user has no password at the end:

#= Add user=C2=A0

RUN ["adduser","-D&q= uot;,"-s","/bin/bash", "admin"]
#Se= t pwd for user

#this is not working
RUN = ["echo","admin:password","|", "chpasswd&= quot;]

So I am wondering what the best pract= ice here. Thanks,

Gabor
--f403045c133a8cbb43056965eedd-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---