Score:0

should I add new user on the dockerfile?

cz flag

I have a non root user with the id 1001 on my host. I want to use that user to run certain docker container. So on the dockerfile (distroless) I specified the USER 1001 as the user to run the container. If I send my image to another computer that I don't know if that user is exist, should I add RUN adduser on the dockerfile?

Brijesh Sondarva avatar
ve flag
Yes, you can use the "adduser" command and mention that the user for migrating the container & images.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.