Sunday, 26 April 2020
the docker push command to push your image to the Docker Hub registry:
docker push [dockerhub username]/[image name]
Tag the image with your username.
The Docker Hub naming convention is to tag your image with [dockerhub username]/[image name]. To do this, tag your previously created image python-hello-world to fit that format.
$ docker tag python-hello-world [dockerhub username]/python-hello-world
Log in to the Docker registry account by entering docker login on your terminal
$ docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username:
Saturday, 25 April 2020
Run a MongoDB server from the Docker Store
$ docker container run --detach --publish 8081:27017 --name mongo mongo:3.4
run bash inside container by using the docker container exec command
$ docker container exec -it [container ID] bash
Subscribe to:
Comments (Atom)
Git
1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...
-
https://github.com/crossplane-contrib
-
https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html
-
awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \ <(grep 'cpu ...