Docker: Difference between revisions

(→‎NGINX: port)
Line 58:
docker exec -it mediawiki mysqladmin -uadmin -ppass create mediawiki2
 
= NGINXNginx =
Source: [https://www.digitalocean.com/community/tutorials/how-to-run-nginx-in-a-docker-container-on-ubuntu-14-04 digitalocean.com]
 
Line 116:
http://<IP_of_Server>:8083
http://<IP_of_Server>:8084
 
;Changing port
Copy the nginx file from docker file system to local filesystem:
sudo docker cp nginx:/etc/nginx/conf.d/default.conf /home/aman/docker/default.conf
 
Edit the config file to change the listening port:
nano default.conf
 
Now start the docker container with the new port:
docker run --name docker-nginx -p 8081:8081 -v ~/docker/nginx8081/html:/usr/share/nginx/html -v ~/docker/default.conf:/etc/nginx/conf.d/default.conf -d nginx
 
= RancherOS =