How to install Docker
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!
install-pkg docker
Hi @CodeLongAndPros ! Idk why but i cant seem to do this command, it shows command not found, idk why
@CoffeeGuy You did that command in the console. You have to type that command in the shell instead. Hope that works :)
@DynamicSquid Still doesn't work. Any help?
@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.
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
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://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
Why do you need to install docker?
@emilyUsesPascal I am using a discord bot module that requires it
The language is Go
@rainbowglitch whats the module?
@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)
@rainbowglitch if your planing on only hosting you, you should not need to worry, as a repl project itself is just a docker container
@emilyUsesPascal
thanks but when i tried a command it gave me this
"bash: docker-compose: command not found"
@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
does anyone know why this code won't open the vnc terminal?
docker run -p 6080:80 dorowu/ubuntu-desktop-lxde-vnc
hi how install docker and usage it
Try this
pkg-install docker docker.io
then run
docker
you'll see it working
@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'.
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"
@H3lix Thanks a lot!!
@H3lix not all heroes wear capes
@paulfears always happy to help (: