Dockerfile demo
docker login -u appleboy
create access token from Docker Hub
How to enable Docker BuildKit
export DOCKER_BUILDKIT=1
or update the /etc/docker/daemon.json
file
{
"features": {
"buildkit": true
}
}
restart docker daemon using root user
systemctl restart docker
docker build -t demo .
docker run -d -p 1234:8080 demo
curl localhost:1234/ping