docker gotchas
See original GitHub issueHi. I tried running this through Docker, and ran into a few gotchas following the gitbook instructions:
- the files in
bin
somehow gave me permission errors, despite beingroot
. pasting these manually helped as a work-around. - the setup script used
sudo
a lot, but the docker container did not recognize this. removing these helped. fwiw, installing sudo helped as well. source activate lab
errored statingsource
was not recognized. I then tried:
# conda config --add channels anaconda
# conda activate lab
# conda env update
(lab) # python3 --version
Python 3.6.4
(lab) # yarn start
$ python3 run_lab.py
Traceback (most recent call last):
File "run_lab.py", line 6, in <module>
from slm_lab.experiment.control import Session, Trial, Experiment
File "/opt/SLM-Lab/slm_lab/__init__.py", line 12
with open(os.path.join(ROOT_DIR, 'config', f'{config_name}.json')) as f:
^
SyntaxError: invalid syntax
error Command failed with exit code 1
Trying this line in this python3
seemed not to yield syntax errors though, so f-strings do seem supported. Weird.
I haven’t fully gotten this to work, but hopefully some of this may be useful for the tutorial. I tried looking for the gitbook source in case I could add to the installation instructions based on this, but couldn’t find it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Common Docker gotchas that you need to avoid - LinkedIn
Common Docker gotchas that you need to avoid · 1. Base image incompatibility · 2. Running unnecessary services · 3. Storing critical data...
Read more >ASP.NET Docker Gotchas and Workarounds
I've recently been working with Docker deployments to get my ASP.NET Core applications into the hands of more developers.
Read more >Docker In 2020: Strange Surprises And Unexpected Gotchas
Docker Bypasses UFW Firewall Rules. Leaky Permission Boundaries. Dockerized Applications Run As Root. Programs Consisting of Multiple Processes.
Read more >Top 10 Docker Logging Gotchas - Sematext
So what are the top 10 Docker logging gotchas, every Docker user should know? · Journald – storing container logs in the system...
Read more >Docker In 2020: Strange Surprises And Unexpected Gotchas
Despite years of use and improvements there are still surprises and gotchas that exist in docker that can easily catch people off guard....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok it’s released. master branch is up to date https://github.com/kengz/SLM-Lab/releases/tag/v1.1.0
please use the
saving
branch in the mean time https://github.com/kengz/SLM-Lab/tree/saving they are to be merged monday.