Runs the app in the development mode.
Open http://localhost:3000 to
view it in the browser.
Runs the production builds of the Next.js Node server (to serve dynamic pages) and the Nginx web server (to serve static assets). Open http://localhost:8080 to view the app in the browser.
Builds, (re)creates, starts, and attaches to containers for a service.
Options:
--detach, -d
: Detached mode: Run containers in the background, print new container names.
--build
: Build images before starting containers.
Stops containers and removes containers, networks, volumes, and images created by up
.
Build an image from a Dockerfile.
Options:
--no-cache
: Do not use cache when building the image
--tag, -t
: Name and optionally a tag in the ‘name:tag’ format
Runs a command in the running container.
Options:
--interactive, -i
: Keep STDIN open even if not attached
--tty, -t
: Allocate a pseudo-TTY
Fetches the logs of a container.
Options:
--follow, -f
: Follow log output
Lists containers.
Runs a command in a new container.
Options:
--publish , -p
: Publish a container’s port(s) to the host (e.g., -p 8080:80
to bind port 80 of
the container (Nginx's default port) to port 8080 of the host machine)
Apply a configuration to a resource (e.g., pod or deployment object). The resource will be created if it doesn't exist yet.
Display resources (e.g., pods, deployments, or services).
Delete resources
Update existing container image(s) of resources