Show us docker ps
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
532b82aa4f5e openspeedtest/latest "/docker-entrypoint.…" 5 days ago Up 4 days 8080/tcp, 0.0.0.0:80->3000/tcp, :::80->3000/tcp, 0.0.0.0:443->3001/tcp, :::443->3001/tcp openspeedtest
$ sudo nginx -T
sudo: nginx: command not found
Go here: Docker
And read where it says
The following command will generate a Let's Encrypt certificate for your domain name and configure a cron job to automatically renew the certificate.
9peppe,
thx for your help here and I think I am one step closer but I got the following message when I ran that command.
docker: Error response from daemon: Conflict. The container name "/openspeedtest" is already in use by container "532b82aa4f5e3a2742b5a8ca49c2d12aaed6fe09dfc03eb6aa2cb0473e7bd168". You have to remove (or rename) that container to be able to reuse that name.
Docker is a whole new thing to me ... Do you happen to know how I can remove or rename that container without breaking the web app ?
I did a google search on this but seems no one know how to get around it ...
thx again.
-d
The docker documentation is pretty useful with this stuff. I usually don't keep non-running containers, and I do not remember if docker ps
lists them. *
Anyhow it's a matter of docker rm | Docker Docs on the non-running container, but read up and check if this makes sense, because I don't know how your environment is set up or what it is you are trying to do.
* docker ls
should.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.