The question is very basic, but I couldn't found any solution
Dockerfile
FROM ubuntu:14.04
COPY . ./myapp
WORKDIR ./myapp
CMD ./myappexecutable
Commands to build and run
sudo docker build -t myapp .
sudo docker run -p 6060:6060 -v /home/usr/data:/root/data myapp
- How can I keep up this container?
When I try run container, its status exited.
CMD tail -f info.log
When I try to tail any file it keeps up but not really works my app also it seems not a good way.
- Does docker have any method to mount volume while building? Doesn't docker support it because of portability?