Zobacz logi poleceniem
Code: Select all
docker container logs nazwa_kontenera
Code: Select all
Docker container list
Code: Select all
docker container logs nazwa_kontenera
Code: Select all
Docker container list
Code: Select all
,
Installing gem(s): mqtt,
/usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /smashing/Gemfile.lock. (Gem::GemNotFoundException),
To update to the latest version installed on your system, run `bundle update --bundler`.,
To install the missing version, run `gem install bundler:1.17.3`,
from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:294:in `activate_bin_path',
from /usr/local/bundle/bin/bundle:23:in `<main>',
/usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /smashing/Gemfile.lock. (Gem::GemNotFoundException),
To update to the latest version installed on your system, run `bundle update --bundler`.,
To install the missing version, run `gem install bundler:1.17.3`,
from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:294:in `activate_bin_path',
from /usr/local/bundle/bin/bundle:23:in `<main>',
/usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /smashing/Gemfile.lock. (Gem::GemNotFoundException),
To update to the latest version installed on your system, run `bundle update --bundler`.,
To install the missing version, run `gem install bundler:1.17.3`,
from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:294:in `activate_bin_path',
from /usr/local/bundle/bin/bundle:23:in `<main>',Code: Select all
FROM ruby:2.5
RUN apt-get update && \
apt-get -y install nodejs && \
apt-get -y clean
RUN gem update --system
RUN gem install bundler:1.17.3
RUN gem install smashing
RUN mkdir /smashing && \
smashing new smashing && \
cd /smashing && \
bundle
COPY run.sh /
ENV PORT 3030
EXPOSE $PORT
WORKDIR /smashing
CMD ["/run.sh"]
Code: Select all
sudo docker build -t smashing .Wreszcie zadziałało. DziękiBeku wrote: Mon Dec 23, 2019 6:55 am edytuj plik dockerfile w katalogu smashing i zastąp jego zawartość tą poniższą:
Następnie ponownie wywołaj będąc w katalogu smashingCode: Select all
FROM ruby:2.5 RUN apt-get update && \ apt-get -y install nodejs && \ apt-get -y clean RUN gem update --system RUN gem install bundler:1.17.3 RUN gem install smashing RUN mkdir /smashing && \ smashing new smashing && \ cd /smashing && \ bundle COPY run.sh / ENV PORT 3030 EXPOSE $PORT WORKDIR /smashing CMD ["/run.sh"]
Code: Select all
sudo docker build -t smashing .