Converting a Docker container to a Runc container -> Read-only file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



People,

I have exported an existing container with:

  mkdir rootfs

  docker export rails_dsf | tar -C rootfs -xvf -

  runc spec

  runc run rails_dsf

I get a shell no problems but when I try to run the run.sh script:

  cd /home/domain-sf
  export SECRET_KEY_BASE=xxxxxx......
  /usr/bin/rails s -e production

I get the result below - I haven't started looking at networking yet but that doesn't seem to be the problem?

Suggestions about how to proceed are appreciated!

Thanks,

Phil.


sh-4.2# /home/run.sh
=> Booting Puma
=> Rails 4.1.5 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/home/domain-sf/vendor/bundle/ruby/gems/rack-1.5.5/lib/rack/server.rb:345:in `delete': Read-only file system - /home/domain-sf/tmp/pids/server.pid (Errno::EROFS) from /home/domain-sf/vendor/bundle/ruby/gems/rack-1.5.5/lib/rack/server.rb:345:in `check_pid!' from /home/domain-sf/vendor/bundle/ruby/gems/rack-1.5.5/lib/rack/server.rb:246:in `start' from /home/domain-sf/vendor/bundle/ruby/gems/railties-4.1.5/lib/rails/commands/server.rb:69:in `start' from /home/domain-sf/vendor/bundle/ruby/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:81:in `block in server' from /home/domain-sf/vendor/bundle/ruby/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in `tap' from /home/domain-sf/vendor/bundle/ruby/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in `server' from /home/domain-sf/vendor/bundle/ruby/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:40:in `run_command!' from /home/domain-sf/vendor/bundle/ruby/gems/railties-4.1.5/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:5:in `require'
        from bin/rails:5:in `<main>'

--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  phil@xxxxxxxxxxxxx
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/containers



[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux