how do we create a user inside a container using python docker apis? I am just running this but I am having errors to write to the home directory of the user. I am getting permission errors....
contCIS = cli.runContainer(buildImage, './MysqlScript.sh',
network='bridgecontainers',
volumes={os.getcwd(): {'bind': '/Build/', 'mode': 'rw'}, '/Users/rg/.m2/': {'bind': '/tmp/.m2/', 'mode': 'rw'}}, user=501, detach=True)
I am seeing errors like this below
linux spec user: unable to find user jenkins: no matching entries in passwd file
or is there a way to mount current user into container on a mac host ?