Trying to launch an image in docker

I am trying to make this lab and enter the following command:

sudo docker run -it --name bdu_spark2 -P -p 4040:4040 -p 4041:4041 -p 8080:8080 -p 8081:8081 bigdatauniversity/spark2:latest /etc/bootstrap.sh -bash

But I get the following error. Is there a conflict between port 8080 of dockers using it and other software trying to use it? I restarted the docker and made sure that no other containers were working. Thanks for all the input.

Error response from daemon: Cannot start container 3c62472fe5f8481e5ee957550078f06106b45fc6bffe25669272e2ea924b5f36: failed to create endpoint bdu_spark2 on network bridge: Error starting userland proxy: listen tcp 0.0.0.0:8080: bind: address already in use
+4
source share
2 answers

This is usually caused by another container using port 8080 on your docker host.

You can see your running containers by running: $ sudo docker ps

Either stop another container, or select a different host port to map your container to 8080 s.

+3
source

, MySQL, , , MySQL, .

docker run --name db --detach --env="MYSQL_ROOT_PASSWORD=123" --publish=3306:3306 mysql:latest

netstat --all --numeric --program --inet --timers | grep 3306 , 1418/mysqld. ps aux | grep mysql , , /usr/sbin/mysqld, MySQL , .

, 8080, -, , IDE.

, -publish, , - , . .. --publish=8081:8080, hostport: containerport.

0

Source: https://habr.com/ru/post/1621333/


All Articles