creating a fenics container


137
views
0
4 months ago by
noname  
Hello,

I wonder why when I create a docker container using fenics image with

docker run -v $(pwd):/home/fenics/shared -it --name <container name> <image name> /bin/bash

I start my container on fenics@63bf68751bf8:~/shared$   however when I re-enter the container later with
docker exec -it <container name> /bin/bash I start  my container on  root@a96efe179b9f:/home/fenics/shared#

anyone knows what I am doing wrong here?
Community: FEniCS Project

1 Answer


3
4 months ago by
So I don't know why the behavior of docker run is different; but you should docker exec -ti -u fenics <container name> /bin/bash -l to enter your running container as the "fenics" user.
wow, exactly what I was looking for, thanks.
written 4 months ago by noname  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »