{"id":64,"date":"2017-04-22T14:43:55","date_gmt":"2017-04-22T14:43:55","guid":{"rendered":"http:\/\/buki.io\/?p=64"},"modified":"2017-04-23T11:38:51","modified_gmt":"2017-04-23T11:38:51","slug":"add-new-to-docker-using-alpine-linux","status":"publish","type":"post","link":"http:\/\/buki.io\/?p=64","title":{"rendered":"Docker: add new user in Alpine Linux"},"content":{"rendered":"<p>If you want to create a new user within a Dockerfile for an Alpine Linux, useradd won&#8217;t work. You have to use <code>adduser<\/code>. <br \/> This command will work<br \/>\n<code>adduser -h \/home\/userx -g groupx -S userx<\/code> <\/p>\n<p>Please mind to add the -S (uppercase!!). If you omit this, Alpine ask interactively for a password. Interestingly, the option <code>--disabled-password<\/code> does not work!?!?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to create a new user within a Dockerfile for an Alpine Linux, useradd won&#8217;t work. You have to use adduser. This command will work adduser -h \/home\/userx -g groupx -S userx Please mind to add the -S (uppercase!!). If you omit this, Alpine ask interactively for a password. Interestingly, the option &#8211;disabled-password &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/buki.io\/?p=64\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8222;Docker: add new user in Alpine Linux&#8220;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[22,21,7],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7N2pi-12","_links":{"self":[{"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/posts\/64"}],"collection":[{"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":2,"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":70,"href":"http:\/\/buki.io\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions\/70"}],"wp:attachment":[{"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/buki.io\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}