docker import | Docker Documentation
docs.docker.com › engine › referenceImport from a local directory with new configurations 🔗. $ sudo tar -c . | docker import --change "ENV DEBUG=true" - exampleimagedir. Note the sudo in this example – you must preserve the ownership of the files (especially root ownership) during the archiving with tar. If you are not root (or the sudo command) when you tar, then the ...