Skip to content

Instantly share code, notes, and snippets.

View Luvgreed's full-sized avatar

ジン Luvgreed

  • Hong Kong
View GitHub Profile
docker login registry.gitlab.com
docker build -t registry.gitlab.com/<path>/<image_name>:<tag> .
docker push registry.gitlab.com/<path>/<image_name>:<tag>
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 >
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 -
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'));