Catatan Docker Command :
login
docker login registry.gitlab.com
docker images
docker pull registry.gitlab.com/aksiteknologi/etos:latest
docker run -p 80:80 -d --name <container_name> <url_images>
docker image prune --filter="dangling=true"
docker stop <container_name>
docker rm <container_name>
untuk melihat container di dalam docker
#docker ps
untuk masuk dalam container
#docker exec -it <nama-container> bash
#apache
sudo docker stop <nama-container>
sudo docker rm <nama-container>
sudo sh -c 'nohup mysql -h127.0.0.1 --user=root --password=xxxx -f -D db_name < db_file.sql 1>stdout_output.txt 2>stderr_output.txt &'
Docker ERROR Debugging
$ /home/gitlab-runner/nganu
$ docker-compose logs nginx -f
cek log container
docker container logs -f <container-name>
=====
gitlab-runner verify
sudo apt remove docker-compose -y
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
gitlab-runner restart
gitlab-runner status
cat /etc/gitlab-runner/config.toml