Ask coding questions

← Back to all posts
How to install Docker
rainbowglitch (4)

Hello, I am making a discord bot and am using an open source one.
I am required to install docker but am not able to. I am a newbie to repl and so I do not know much. This might be a stupid question but it is essential to me.
The error shown in the console is below:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Thanks!

Comments
hotnewtop
CoffeeGuy (1)

Hi @CodeLongAndPros ! Idk why but i cant seem to do this command, it shows command not found, idk why

emilyUsesPascal (65)

Why do you need to install docker?

rainbowglitch (4)

@emilyUsesPascal I am using a discord bot module that requires it
The language is Go

rainbowglitch (4)

@emilyUsesPascal I do not know the name(I forgot and the bot is so large and has too many files for me to check in a small amount of time). The bot is open source and is known as YAGPDB(not developed by me)

emilyUsesPascal (65)

@rainbowglitch if your planing on only hosting you, you should not need to worry, as a repl project itself is just a docker container

rainbowglitch (4)

@emilyUsesPascal
thanks but when i tried a command it gave me this
"bash: docker-compose: command not found"

emilyUsesPascal (65)

@rainbowglitch Sadly I do not think you can use docker on repl.it
You can try by creating a polyglot repl here: http://repl.it/l/polygott

and using install-pkg

nitish770 (0)

Try this
pkg-install docker docker.io
then run
docker
you'll see it working

H3lix (0)

I know this thread is old, but I got docker to work with this command here "install-pkg docker-compose" after doing "install-pkg docker"

rainbowglitch (4)

Thanks, this did help. I was able to get somewhere in the starting process but now a new error is occuring

pkg_resources.DistributionNotFound: The 'docker-compose==1.17.1' distribution was not found and is required by the application

n3wbot (0)

same issues i just got made a vps from my dedicated server and set up a few bots using https://pterodactyl.io/ bots like this
i built from scratch and this runs on repl actually atm Disbot https://disbot.site

https://dislist.me

https://disbot.me <- yes sank6 bot list but revamped to have the option to be able to certify bots!

https://boltzbot.ga <- yagpdb clone im currently working on
@rainbowglitch