Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (2.3k points)

I have been trying to run scarpy splash on my server but i can't seem to run docker 

These are all commands i used :

docker run -p 8050:8050 scrapinghub/splash

sudo docker run -p 8050:8050 scrapinghub/splash

sudo usermod -aG docker $(whoami)

sudo docker run -p 8050:8050 scrapinghub/splash

newgrp docker

sudo docker run -p 8050:8050 scrapinghub/splash

reboot

sudo docker run -p 8050:8050 scrapinghub/splash

docker run -p 8050:8050 scrapinghub/splash

But none of the above commands have worked & Restarting the server didn't help either.

closed

1 Answer

+1 vote
by (6.9k points)
selected by
 
Best answer

Well you can just try starting it using the below command :

systemctl start docker

If that doesn't work maybe try running it as ' sudo docker '.   You may need root access for /var/run/docker.sock .

Or with the below command you will be able to give access to user to use docker.

gpasswd -a $USER docker


Also If you want to become more adept with docker you can check this Docker training course . You will be trained by industry professionals who have years of experience in docker. Or you can check out this Docker Tutorial to get to know more about how to use docker.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...