Trying to get in from docker for windows, but have...
# ieee-sscs-dc-22
b
Trying to get in from docker for windows, but have this!
m
Does
id -g
work?
e
Hi Belal, The id -u and id -g commands in the docker command only work when you're launching from linux. They call the id command to use your user id and group in the docker container. You need to hard-code something when running from windows. This works for me: docker run -d -p 80:80 -p 5901:5901 --user 1000:1000 -v c/users/ejf/iic osic/foss/designs -e VNC_PW=abc123 -e VNC_RESOLUTION=1920x1080 hpretl/iic-osic-tools:x86_64 You need to replace "c:/users/ejf/iic-osic" with whatever windows directory you want mounted as /foss/designs in the container. Hope this helps!
b
-what is the difference between iic-osic-tools and foss-asic-tools ? -and when instailing docker for windows, what should i use ? Sir, i tried this, but also localhost doesn't open. @Eric
now i used this command: docker run -it -p 80:1080 -p 5901:5901 --user 1000:1000 -v "C:\Users\my-local-design-files":/foss/designs efabless/foss-asic-tools:latest bash but also localhost didn't open!
e
Hi Belal,
I'm just a user, so I'll answer as best I can. You may want to consult an expert such as @Georg Zachl if you have more questions.
foss-asic-tools is the docker container set up by efabless. iic-osic-tools is a version of this with some additional things installed, but it's based on foss-asic-tools. It's from @Harald Pretl and his research group.
The docker command has a lot of options. I debugged this for myself by simplifying it. If you don't need VNC, you can simplify it down to this (removing all the stuff related to VNC): docker run -d -p 80:80 --user 1000:1000 -v d/users/ejf/iic osic/foss/designs hpretl/iic-osic-tools:x86_64
The --user argument can actually be dropped for testing purposes (you'll get a default UID). You can also drop the -v <directory> mount to see if the problem is there:
docker run -d -p 80:80 hpretl/iic-osic-tools:x86_64 This is as stripped down as you can get. The -p maps the http port from the container to the host, so you need that. And the way the container is done, you need the -d option. (Different for the foss-asic version).
You can also try 127.0.0.1 in place of 'localhost' in the browser.
Those are all the ideas I have! If that fails, you can ask @Harald Pretl and @Georg Zachl
Regarding your question about using foss-asic or iic-osic: You should be able to run all the tools using foss-asic. I don't know the exact differences, but I used iic-osic because I read that it had some additional enhancements for drc scripts and some other things. I don't think they are essential, though. You should be able to get doing with the foss-asic setup.
b
Thanks much!, worked now with this command: docker run -it -p 80:80 -p 5901:5901 --user 1000:1000 -v "C:\Users\my-local-design-files":/foss/designs efabless/foss-asic-tools:latest bash Thanks!
😎 1