brunopadz / mkcert-docker Goto Github PK
View Code? Open in Web Editor NEWRun mkcert from a docker container
Home Page: https://hub.docker.com/r/brunopadz/mkcert-docker
Run mkcert from a docker container
Home Page: https://hub.docker.com/r/brunopadz/mkcert-docker
The command in the readme doesn't seem to be correct, as it uses /bin/sh
, while the Dockefile is built FROM scratch
, which doesn't include sh
or anything but the mkcert
binary.
$ docker run -v $PWD:/root/.local/share/mkcert brunopadz/mkcert-docker:latest \
/bin/sh -c "mkcert -install && \
mkcert -cert-file /root/.local/share/mkcert/mkcert.pem \
-key-file /root/.local/share/mkcert/mkcert.key localhost.dev"
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown.
ERRO[0000] error waiting for container:
Looking at the Dockerfile history, an older version of the image was built from golang:1.12-alpine
, I guess the command worked back then.
I was able to run the current Docker image with the following command in instead:
docker run -v $HOME/.local/share/mkcert:/.local/share/mkcert brunopadz/mkcert-docker:latest\
./mkcert -cert-file /.local/share/mkcert/mkcert.pem -key-file /.local/share/mkcert/mkcert.key localhost
I've found this container super useful. I only wish that it was cross platform.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.