rails-chat-tutorial icon indicating copy to clipboard operation
rails-chat-tutorial copied to clipboard

Cannot copy current dir to container

Open LijieZhou opened this issue 5 years ago • 0 comments

I am able to follow the tutorial until copying the current directory to /application directory in the image. I am not able to see the content get copied into the container somehow:

lijie@lijie-XPS-13-9350:~/rails-chat-tutorial$ ls
app  bin  config  config.ru  db  Dockerfile  Gemfile  Gemfile.lock  lib  LICENSE  log  package.json  public  Rakefile  README.md  storage  test  tmp  vendor
lijie@lijie-XPS-13-9350:~/rails-chat-tutorial$ cat Dockerfile 
FROM ruby:2.6.2-stretch
COPY . /application

lijie@lijie-XPS-13-9350:~/rails-chat-tutorial$ sudo docker run -i -t rails-chat-tutorial
irb(main):001:0> Dir['/application/*']
=> []
irb(main):002:0> 

LijieZhou avatar Jun 15 '20 20:06 LijieZhou