tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
198 stars 109 forks source link

cant remap ports to container #62

Closed jmcnamara10001 closed 6 months ago

jmcnamara10001 commented 6 months ago

Hello,

I'm running Docker on Linux. I use the following command to start the container:


# docker run -it --name pj10 -p 41062:80 -d -v ~/my_web_pages:/www -v ~/my_apache_conf:/opt/lampp/apache2/conf tomsik68/xampp
docker: Error response from daemon: Conflict. The container name "/pj10" is already in use by container "bf11189421643442aac25205b9532cc19c16a05d0b6f90ce63bdbf9163b2d4a3". You have to remove (or rename) that container to be able to reuse that name.

i kept getting rename container or remove container already in use.

then i try to rename or stop or any scenario but i cant get it to start with 
docker run with the correct paremeters afterwards

please help thanks

Thank you!
jmcnamara10001 commented 6 months ago

hi--

i needed to set up a volume and commit it with autostart processes. thanks

tomsik68 commented 6 months ago

Hello,

it seems like there is a naming conflict. To resolve this, we need to come up with a container name that isn't used on your machine. Can you please share the list containers you have on your machine? You can use the following command to list them:

docker ps -a
jmcnamara10001 commented 6 months ago

Hi Tomisk68-

Im doing better with docker right now. Sorry i forgot to update. I needed to learn Dockerfile, volume, init.sh, and compose.yaml. The services need to be autostarted. Then there wont be this issue.

thanks, jim

Sent with Proton Mail secure email.

On Friday, May 24th, 2024 at 4:36 PM, Tomáš Jašek @.***> wrote:

Hello,

it seems like there is a naming conflict. To resolve this, we need to come up with a container name that isn't used on your machine. Can you please share the list containers you have on your machine? You can use the following command to list them:

docker ps -a

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tomsik68 commented 6 months ago

I'm glad to hear you made some progress. I'm closing this issue for now, feel free to reopen if you have any additional questions.