i'm trying containerize application consists of 2 services defined. 1 basic server running on specific port , second 1 ssh server. first service creates users executing standard unix commands (managing user , ssh keys) , can login second ssh service. each service running in separate container , use docker compose make running together.
the issue i'm unable define docker volumes can user created first service can use second service. need share files /etc/passwd, /etc/shadow, /etc/group between both services.
what tried:
1) define volumes each file
- not supported in docker compose (it can use directories volumes)
2) replace /etc/passwd symlink copy in volume
- as described here
3) set whole /etc volume
- doesn't work (only files image volume)
- is ugly
i thrilled suggestion or workaround wouldn't require put both services in 1 container.
Comments
Post a Comment