foss-asic-tools icon indicating copy to clipboard operation
foss-asic-tools copied to clipboard

Fix docker start command

Open hpretl opened this issue 2 years ago • 1 comments

I found that VNC needs the following to work:

Instead of docker run -it -p 80:80 --user $(id -u):$(id -g) -v $DESIGNS:/foss/designs efabless/foss-asic-tools:latest bash

one needs to run docker run -it -p 80:80 -p 5901:5901 --user $(id -u):$(id -g) -v $DESIGNS:/foss/designs efabless/foss-asic-tools:latest bash

Please update the instructions accordingly.

hpretl avatar Apr 02 '22 10:04 hpretl

I'm sorry. I'm working with Ubuntu and havn't done eneything with docker until today. after installing docker (followed https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04-de) I've execute the followed commands:

  • sudo apt update && sudo apt upgrade -y
  • curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  • sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
  • sudo apt update
  • apt-cache policy docker-ce
  • sudo apt install docker-ce
  • sudo systemctl status docker
  • mkdir design-files
  • sudo docker pull efabless/foss-asic-tools:latest
  • latest: Pulling from efabless/foss-asic-tools
  • ->
Digest: sha256:59e4a3a814ca6b2e24870130b0bfb3fc43650e7e89b33626084148905ffefcd1
Status: Image is up to date for efabless/foss-asic-tools:latest
docker.io/efabless/foss-asic-tools:latest
  • sudo docker run -it -p 80:80 --user $(id -u):$(id -g) -v $DESIGNS:/foss/designs efabless/foss-asic-tools:latest bash
  • ->
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.

Please could you help me to fix my problem. I'm sorry.

OK83 avatar Jan 23 '23 21:01 OK83