Score:0

Error executing a docker compser command

cn flag

im a newbie in Linux/ubuntu/docker, and im trying to install a WordPress using docker but every time I executed the command docker-compose up -d I get the same error whenever ins building the MySQL

Building mysql
Sending build context to Docker daemon   2.56kB
Step 1/9 : FROM mysql:5.7.9
 ---> ec7e75e5260c
Step 2/9 : RUN apt-get update;  apt-get install --no-install-recommends -y ca-certificates curl wget
 ---> Running in 111a79e6ca40
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:2 http://httpredir.debian.org jessie-updates InRelease [16.3 kB]
E: The method driver /usr/lib/apt/methods/https could not be found.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package ca-certificates
E: Unable to locate package curl
E: Unable to locate package wget
The command '/bin/sh -c apt-get update;     apt-get install --no-install-recommends -y ca-certificates curl wget' returned a non-zero code: 100
ERROR: Service 'mysql' failed to build : Build failed

I tried using docker for windows, wsl, and ubuntu 20.04 and installing a VM with xubuntu 20.04 but I get the same error

I tried changing the time zone but nothing happens, I tried installing the apt-transport-https but it says that is installed and updated, what can be this error?

Thanks!

in flag
Your Docker container appears to be built from Debian, which makes it a bit different from Ubuntu. You may find the answer on [the Docker Community forum](https://forums.docker.com/), though.
cn flag
Thanks, i will try there!
abeciaj avatar
us flag
This link might help Since you have the same error https://unix.stackexchange.com/questions/263801/apt-get-fails-the-method-driver-usr-lib-apt-methods-https-could-not-be-found
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.