docker build -t friendlyhello . # Create image using this directory's Dockerfile docker run -p 4000:80 friendlyhello # Run "friendlyname" mapping port 4000 to 80 docker run -d -p 4000:80 friendlyhello # Same thing, but in detached mode docker container ls # List all running containers docker container ls -a # List all containers, even those not running docker container stop # Gracefully stop the specified container docker container kill # Force shutdown of the specified container docker container rm # Remove specified container from this machine docker container rm $(docker container ls -a -q) # Remove all containers docker image ls -a # List all images on this machine
$ docker build -t friendlyhello .
Create image using this directory's Dockerfile$ docker run -p 4000:80 friendlyhello
# Run "friendlyname" mapping port 4000 to 80$ docker run -d -p 4000:80 friendlyhello
# Same thing, but in detached mode$ docker container ls
# List all running containers-$ docker container ls -a
# List all containers, even those not running$ docker container stop <hash>
# Gracefully stop the specified container$ docker container kill <hash>
# Force shutdown of the specified container$ docker container rm
# Remove specified container from this machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0479033f2b224b12e7f5aea83ecc4b5646e3cccbe13018b6dd78a9ddbb489fb1f5945f24d6d2d22e60ae1cda98b09015c6c9132225ff55fe9e02cdf4345f087e42;fnando |
I hereby claim:
- I am lucaslago on github.
- I am bndr (https://keybase.io/bndr) on keybase.
- I have a public key whose fingerprint is 60E4 A1C8 B889 F0B2 54B0 B30C B18E EA3B 38F6 B405
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Asserting on mocked class instance | |
const mockedSentryInstance = jest.mocked(Toucan).mock.instances[0]; |