Skip to content
← Back to Community
How to install Docker
Profile icon
rainbowglitch

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!

Voters
Profile icon
AhmadKhan15
Profile icon
Alex731
Profile icon
vishwas007
Profile icon
pzula
Profile icon
rainbowglitch
Profile icon
firefish
Comments
hotnewtop
Profile icon
H3lix

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"

Profile icon
vishwas007

@H3lix Thanks a lot!!

Profile icon
paulfears

@H3lix not all heroes wear capes

Profile icon
H3lix

@paulfears always happy to help (:

Profile icon
CodeLongAndPros

install-pkg docker

Profile icon
CoffeeGuy

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

Profile icon
DynamicSquid

@CoffeeGuy You did that command in the console. You have to type that command in the shell instead. Hope that works :)

Profile icon
DaCuteRaccoon

@DynamicSquid Still doesn't work. Any help?

Profile icon
DynamicSquid

@DaCuteRaccoon Replit has a new system called Nix, which makes it way easier to install packages. Create a new file called replit.nix and put this in there:

{ pkgs }: { deps = [ pkgs.docker ]; }

That should work. More info here.

Profile icon
rainbowglitch

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

Profile icon
n3wbot

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

Profile icon
emilyUsesPascal

Why do you need to install docker?

Profile icon
rainbowglitch

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

Profile icon
emilyUsesPascal

@rainbowglitch whats the module?

Profile icon
rainbowglitch

@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)

Profile icon
emilyUsesPascal

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

Profile icon
rainbowglitch

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

Profile icon
emilyUsesPascal

@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

Profile icon
DaddE23

does anyone know why this code won't open the vnc terminal?
docker run -p 6080:80 dorowu/ubuntu-desktop-lxde-vnc

Profile icon
xarat55309

hi how install docker and usage it

Profile icon
nitish770

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

Profile icon
zibri

@nitish770
docker run --rm dockcross/windows-shared-x64 > winx64
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.