Posts with tag 'Docker'

Share a Docker image without using a Docker registry

|
|
Tags:  Docker

This is useful for sharing personal Docker images or to import it to a secure environment with no Internet connection. Example: # Export Docker image to a .tar file docker save thingsandcode.com/thingsandcode-web:20220830-pro > /tmp/thingsandcode-web_20220830-pro.tar # Import .tar file to local Docker installation docker load --input /tmp/thingsandcode-web_20220830-pro.tar

Continue reading...

Copy a Docker image from one registry to another

|
|
Tags:  Docker

Copying docker images is useful to prevent losing access to an image if the remote registry goes down or to move images between environments (For example: from testing to production) The process consists in pulling an image from an origin repository, change the tag, and push the image to a remote repository. Example: # Login...

Continue reading...