This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker login registry.gitlab.com | |
docker build -t registry.gitlab.com/<path>/<image_name>:<tag> . | |
docker push registry.gitlab.com/<path>/<image_name>:<tag> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t <image_name>:<tag> . | |
docker run -p <host_port>:<container_port> -d <image_name>:<tag> | |
docker ps | |
docker logs <container_id> | |
docker exec -it <container_id> <commands here : e.g. cd /usr/src/app > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Install using the repository | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TheTime = moment(); | |
l('year', TheTime.get('year')); | |
l('month', TheTime.get('month')+1); | |
l('date', TheTime.get('date')); | |
or | |
l('YYYY',moment().format('YYYY')); | |
l('MM',moment().format('MM')); | |
l('DD',moment().format('DD')); |
NewerOlder